X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fopenocd.c;h=f084dd4522d6294e027578982f803d9c9b86927b;hb=e978e53c7710a3643abea628245a0e155ad4dfd9;hp=902528d08b889d314a89db3f66c603b22c591547;hpb=6eba3777fca4a3e8c0d91dce9caedfeb9c08dc67;p=fw%2Fopenocd diff --git a/src/openocd.c b/src/openocd.c index 902528d08..f084dd452 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -359,6 +359,10 @@ int openocd_main(int argc, char *argv[]) unregister_all_commands(cmd_ctx, NULL); + /* free all DAP and CTI objects */ + dap_cleanup_all(); + arm_cti_cleanup_all(); + adapter_quit(); /* Shutdown commandline interface */