X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fopenocd.c;h=f084dd4522d6294e027578982f803d9c9b86927b;hp=902528d08b889d314a89db3f66c603b22c591547;hb=89f07325f2e7ca9d28ba0c54a26e3aab8b34984a;hpb=6eba3777fca4a3e8c0d91dce9caedfeb9c08dc67 diff --git a/src/openocd.c b/src/openocd.c index 902528d08b..f084dd4522 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 */