diff options
author | GDR! <gdr@gdr.name> | 2015-07-07 19:02:51 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2015-07-07 19:02:51 +0200 |
commit | 71f6953feb4b8bd9914f04210fb23d5558c92960 (patch) | |
tree | 49cc61bf440b9a2f26ed07164deecfa4eb36eb28 /main.c | |
parent | cc2ec501a7e7563dfcb46241f837c050a9e043a6 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |