git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e8116d
)
ofproto: Fix memory leak in rule_actions_unref().
author
Ben Pfaff
<blp@nicira.com>
Tue, 24 Sep 2013 21:22:14 +0000
(14:22 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 24 Sep 2013 21:22:14 +0000
(14:22 -0700)
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
1e5319a
..
f305710
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-2487,6
+2487,7
@@
rule_actions_unref(struct rule_actions *actions)
atomic_sub(&actions->ref_count, 1, &orig);
if (orig == 1) {
+ free(actions->ofpacts);
free(actions);
} else {
ovs_assert(orig != 0);