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/server/server.c | |
parent | ae5b30ae960b35187751e9d837d5dc42745d2376 (diff) | |
download | riscv-openocd-33a33553046bc720800f410adbc81bc2fb175e74.zip riscv-openocd-33a33553046bc720800f410adbc81bc2fb175e74.tar.gz riscv-openocd-33a33553046bc720800f410adbc81bc2fb175e74.tar.bz2 |
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/server/server.c')
-rw-r--r-- | src/server/server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/server.c b/src/server/server.c index 6fa864b..8fd2d71 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -641,6 +641,13 @@ int server_quit(void) return last_signal; } +void server_free(void) +{ + tcl_service_free(); + telnet_service_free(); + jsp_service_free(); +} + void exit_on_signal(int sig) { #ifndef _WIN32 |