diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-11 19:09:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-11 19:10:05 -0400 |
commit | cdafcc49bc273e472d40ea8c01219bbc165c92cb (patch) | |
tree | 9c0ceeafb5e68624d409032bc574ae737c42ac48 /src/tools | |
parent | 40471d73e5270d615a92be2ee1e7c70232dcbbcc (diff) | |
download | tor-cdafcc49bc273e472d40ea8c01219bbc165c92cb.tar.gz tor-cdafcc49bc273e472d40ea8c01219bbc165c92cb.zip |
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.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-resolve.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 98b3a4a74c..5d97696c18 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -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; } |