From: Ben Pfaff Date: Fri, 28 Mar 2008 22:06:29 +0000 (-0700) Subject: Fix memory leak in poll-loop.c. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e3dc59164720c43771217cada3cde493922b3b;p=openvswitch Fix memory leak in poll-loop.c. --- 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--; }