projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f2b5b
)
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:56 +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
cebf5a5
..
282ed0b
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-2468,6
+2468,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);