From 34e3dc59164720c43771217cada3cde493922b3b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 28 Mar 2008 15:06:29 -0700 Subject: [PATCH] Fix memory leak in poll-loop.c. --- lib/poll-loop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/poll-loop.c b/lib/poll-loop.c index 23ca342c..8cb0c55e 100644 --- a/lib/poll-loop.c +++ b/lib/poll-loop.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include "list.h" @@ -99,6 +100,7 @@ poll_cancel(struct poll_waiter *pw) if (pw) { assert(pw != running_cb); list_remove(&pw->node); + free(pw); n_waiters--; } } @@ -171,6 +173,7 @@ poll_block(void) } } node = list_remove(node); + free(pw); n_waiters--; } -- 2.30.2