Skip to content

Commit

Permalink
CID 122516 (#2-1 of 2): Resource leak (RESOURCE_LEAK)11. leaked_storage:
Browse files Browse the repository at this point in the history
Variable hostname going out of scope leaks the storage it points to.
  • Loading branch information
gjedeer committed Jul 7, 2015
1 parent cc2ec50 commit 71f6953
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ int handle_request_tunnel_frame(protocol_frame *rcvd_frame)
log_printf(L_WARNING, "Could not connect to %s:%d\n", hostname, port);
/* TODO send reject */
}

free(hostname);
}

/* Handle a TCP frame received from client */
Expand Down

0 comments on commit 71f6953

Please sign in to comment.