]> granicus.if.org Git - libevent/commitdiff
Fix request_finished memory leak with debugging turned on.
authorLeonid Evdokimov <darkk@yandex-team.ru>
Wed, 10 Aug 2011 23:24:06 +0000 (03:24 +0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Aug 2011 15:12:57 +0000 (11:12 -0400)
evdns.c

diff --git a/evdns.c b/evdns.c
index 6dd3dc92e8734f5eeb086c9167b3e2dccdb151dc..7e175edb1eed323b8d1bcf2c918407fad6251fc5 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -645,6 +645,8 @@ request_finished(struct request *const req, struct request **head, int free_hand
        } else {
                base->global_requests_waiting--;
        }
+       /* it was initialized during request_new / evtimer_assign */
+       event_debug_unassign(&req->timeout_event);
 
        if (!req->request_appended) {
                /* need to free the request data on it's own */