summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2015-07-07 19:02:51 +0200
committerGDR! <gdr@gdr.name>2015-07-07 19:02:51 +0200
commit71f6953feb4b8bd9914f04210fb23d5558c92960 (patch)
tree49cc61bf440b9a2f26ed07164deecfa4eb36eb28 /main.c
parentcc2ec501a7e7563dfcb46241f837c050a9e043a6 (diff)
CID 122516 (#2-1 of 2): Resource leak (RESOURCE_LEAK)11. leaked_storage:
Variable hostname going out of scope leaks the storage it points to.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index ed653ef..63e7cbe 100644
--- a/main.c
+++ b/main.c
@@ -388,6 +388,8 @@ int handle_request_tunnel_frame(protocol_frame *rcvd_frame)
388 log_printf(L_WARNING, "Could not connect to %s:%d\n", hostname, port); 388 log_printf(L_WARNING, "Could not connect to %s:%d\n", hostname, port);
389 /* TODO send reject */ 389 /* TODO send reject */
390 } 390 }
391
392 free(hostname);
391} 393}
392 394
393/* Handle a TCP frame received from client */ 395/* Handle a TCP frame received from client */