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