projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc28a56
)
secchan: Fix memory leaks.
author
Ben Pfaff
<blp@nicira.com>
Thu, 5 Mar 2009 21:43:26 +0000
(13:43 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 5 Mar 2009 21:43:26 +0000
(13:43 -0800)
secchan/ofproto.c
patch
|
blob
|
history
diff --git
a/secchan/ofproto.c
b/secchan/ofproto.c
index 2e460ee575ba99048d83c4c35a3573f6cd5b79c5..367943586208de3a5b65e72a563138227159d964 100644
(file)
--- a/
secchan/ofproto.c
+++ b/
secchan/ofproto.c
@@
-2171,6
+2171,7
@@
add_flow(struct ofproto *p, struct ofconn *ofconn,
}
rule_destroy(displaced_rule);
}
+ free_actions(&actions);
}
return buffer_error;
}
@@
-2207,6
+2208,7
@@
modify_flow(struct ofproto *p, const struct ofp_flow_mod *ofm,
odp_flow.actions = actions.actions;
odp_flow.n_actions = actions.n_actions;
dpif_flow_add(&p->dpif, &odp_flow);
+ free_actions(&actions);
update_stats(rule, &odp_flow.stats);
}