server: fix small mem leak of bindto_name 09/4909/2
authorTomas Vanek <vanekt@fbl.cz>
Mon, 21 Jan 2019 20:51:04 +0000 (21:51 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 21 Feb 2019 07:49:08 +0000 (07:49 +0000)
Change-Id: Ib9c8003e164a156f1c4d3cde47e4158d867d82c6
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4909
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/server/server.c

index f8273d4..539bdaf 100644 (file)
@@ -703,6 +703,8 @@ void server_free(void)
        tcl_service_free();
        telnet_service_free();
        jsp_service_free();
+
+       free(bindto_name);
 }
 
 void exit_on_signal(int sig)