mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a memory leak in tor-resolve.c
Closes bug 30151/coverity CID 1441830. Bugfix on 0.4.0.1-alpha when we started doing trunnel parsing in tor-resolve.c.
This commit is contained in:
@@ -424,6 +424,7 @@ do_resolve(const char *hostname,
|
||||
if (parsed < 2) {
|
||||
log_err(LD_NET, "Failed to parse SOCKS5 method selection "
|
||||
"message");
|
||||
socks5_server_method_free(m);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user