diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-03-13 00:53:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-03-13 00:53:54 -0500 |
commit | 859af6772c8ff929ec73b862bb3b64dc0e57bada (patch) | |
tree | 0487ed46b641275da68893ae17f6586ab716fd28 /evdns.c | |
parent | 68dc742bf1adc6fb7033788a41520625c516bf48 (diff) | |
download | libevent-859af6772c8ff929ec73b862bb3b64dc0e57bada.tar.gz |
Free evdns_base->req_heads on evdns_base_free
It looks like when we moved from one big inflight-requests list to an
n-heads structure, we didn't make evdns_base_free() free the array of
heads. This patch should fix that.
Found with valgrind
Diffstat (limited to 'evdns.c')
-rw-r--r-- | evdns.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3775,6 +3775,8 @@ evdns_base_free_and_unlock(struct evdns_base *base, int fail_requests) } } + mm_free(base->req_heads); + EVDNS_UNLOCK(base); EVTHREAD_FREE_LOCK(base->lock, EVTHREAD_LOCKTYPE_RECURSIVE); |