X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fopenocd.c;h=54fc83a1729659c7d0785af0e59ca4d66f19bc6e;hb=refs%2Fchanges%2F10%2F4410%2F3;hp=739442163cddc46e10f3450fc343ed4c28b8910d;hpb=ae5b30ae960b35187751e9d837d5dc42745d2376;p=openocd.git diff --git a/src/openocd.c b/src/openocd.c index 739442163c..54fc83a172 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -345,6 +345,9 @@ int openocd_main(int argc, char *argv[]) /* Start the executable meat that can evolve into thread in future. */ ret = openocd_thread(argc, argv, cmd_ctx); + gdb_service_free(); + server_free(); + unregister_all_commands(cmd_ctx, NULL); /* Shutdown commandline interface */