help: re-implement 'help' independent from tree of struct command
[fw/openocd] / src / openocd.c
index fcefdbe70fae5eef42879c666e5749deeab77668..32b68b6fc2cabfcf90e6abac29d90afa708d0098 100644 (file)
@@ -361,6 +361,7 @@ int openocd_main(int argc, char *argv[])
        server_free();
 
        unregister_all_commands(cmd_ctx, NULL);
+       help_del_all_commands(cmd_ctx);
 
        /* free all DAP and CTI objects */
        dap_cleanup_all();