mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
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.
This commit is contained in:
parent
48578e1512
commit
ab1a679eef
3
changes/bug11437
Normal file
3
changes/bug11437
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes:
|
||||
- Stop leaking memory when we successfully resolve a PTR record.
|
||||
Fixes bug 11437; bugfix on 0.2.4.7-alpha.
|
@ -1352,6 +1352,7 @@ inform_pending_connections(cached_resolve_t *resolve)
|
||||
}
|
||||
resolve->pending_connections = pend->next;
|
||||
tor_free(pend);
|
||||
tor_free(hostname);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user