diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2018-02-15 00:22:42 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2018-03-15 17:08:53 +0000 |
commit | 33a33553046bc720800f410adbc81bc2fb175e74 (patch) | |
tree | ab8c95bd426f3b8cb621432e160276e22ffdae41 /src/openocd.c | |
parent | ae5b30ae960b35187751e9d837d5dc42745d2376 (diff) |
server: free strduped port numbers
Although the leak is negligible, the clean heap on exit will ease
valgrind testing.
Change-Id: I3a7a9c8e8dc7557aa51d0b9caa244537e5e7007d
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4410
Tested-by: jenkins
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c index 73944216..54fc83a1 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 */ |