diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-07 23:29:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-07 23:29:47 -0400 |
commit | ab1a679eef77520f072e9933ae125dfcf0c228cf (patch) | |
tree | f9c3fd56004e3a1a6bd7471dac34539e5a55ef95 /src/or/dns.c | |
parent | 48578e1512f2d5fa95e4fdde0564d2db8ee7f995 (diff) | |
download | tor-ab1a679eef77520f072e9933ae125dfcf0c228cf.tar.gz tor-ab1a679eef77520f072e9933ae125dfcf0c228cf.zip |
Fix a small memory leak when resolving PTR addresses
Fixes bug 11437; bugfix on 0.2.4.7-alpha.
Found by coverity; this is CID 1198198.
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index f2b7eecc3f..fb1b10d82c 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1352,6 +1352,7 @@ inform_pending_connections(cached_resolve_t *resolve) } resolve->pending_connections = pend->next; tor_free(pend); + tor_free(hostname); } } |