From: Leonid Evdokimov Date: Wed, 10 Aug 2011 23:24:06 +0000 (+0400) Subject: Fix request_finished memory leak with debugging turned on. X-Git-Tag: release-2.0.14-stable~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aff6ba15a1712567ca65d3d4d0b6f0c2fabc672b;p=libevent Fix request_finished memory leak with debugging turned on. --- diff --git a/evdns.c b/evdns.c index 6dd3dc92..7e175edb 100644 --- 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 */