From 0f2e12bacb294b10019c2a01825e7dc791afe38d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 5 Mar 2009 13:43:26 -0800 Subject: [PATCH] secchan: Fix memory leaks. --- secchan/ofproto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secchan/ofproto.c b/secchan/ofproto.c index 2e460ee5..36794358 100644 --- 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); } -- 2.30.2