mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Fix request_finished memory leak with debugging turned on.
This commit is contained in:
parent
9b724b288a
commit
aff6ba15a1
2
evdns.c
2
evdns.c
@ -645,6 +645,8 @@ request_finished(struct request *const req, struct request **head, int free_hand
|
|||||||
} else {
|
} else {
|
||||||
base->global_requests_waiting--;
|
base->global_requests_waiting--;
|
||||||
}
|
}
|
||||||
|
/* it was initialized during request_new / evtimer_assign */
|
||||||
|
event_debug_unassign(&req->timeout_event);
|
||||||
|
|
||||||
if (!req->request_appended) {
|
if (!req->request_appended) {
|
||||||
/* need to free the request data on it's own */
|
/* need to free the request data on it's own */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user