projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1558120
)
Fix memory leak in poll-loop.c.
author
Ben Pfaff
<blp@nicira.com>
Fri, 28 Mar 2008 22:06:29 +0000
(15:06 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 1 Apr 2008 16:52:59 +0000
(09:52 -0700)
lib/poll-loop.c
patch
|
blob
|
history
diff --git
a/lib/poll-loop.c
b/lib/poll-loop.c
index 23ca342ca38ef2572b95ab12edce2b72f6dcf839..8cb0c55eb7e76c5fc6d2dd1a46e42eb84e36eb78 100644
(file)
--- a/
lib/poll-loop.c
+++ b/
lib/poll-loop.c
@@
-35,6
+35,7
@@
#include <assert.h>
#include <errno.h>
#include <poll.h>
+#include <stdlib.h>
#include <string.h>
#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--;
}