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:
a0b77c6
)
ofproto: Fix memory leak in add_flow().
author
Ben Pfaff
<blp@nicira.com>
Wed, 4 Sep 2013 19:33:43 +0000
(12:33 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 4 Sep 2013 20:09:37 +0000
(13:09 -0700)
Found by inspection.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
1173936
..
62c96af
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-3456,6
+3456,7
@@
add_flow(struct ofproto *ofproto, struct ofconn *ofconn,
error = ofproto_check_ofpacts(ofproto, fm->ofpacts, fm->ofpacts_len,
&fm->match.flow, table_id);
if (error) {
+ cls_rule_destroy(&cr);
return error;
}