]> granicus.if.org Git - libevent/commitdiff
fix a leak when unpausing evrpc requests
authorNick Mathewson <nickm@torproject.org>
Sat, 24 Apr 2010 03:55:03 +0000 (23:55 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 24 Apr 2010 03:55:03 +0000 (23:55 -0400)
evrpc.c

diff --git a/evrpc.c b/evrpc.c
index ba72e24df70cad4a70762c23431642649263b1c8..43f4dcb548b96e8fdf54e51b9b6c824ef0668f5c 100644 (file)
--- a/evrpc.c
+++ b/evrpc.c
@@ -774,6 +774,7 @@ evrpc_resume_request(void *vbase, void *ctx, enum EVRPC_HOOK_RESULT res)
 
        (*pause->cb)(pause->ctx, res);
        TAILQ_REMOVE(head, pause, next);
+       mm_free(pause);
        return (0);
 }