From: Ben Pfaff Date: Thu, 5 Mar 2009 21:43:26 +0000 (-0800) Subject: secchan: Fix memory leaks. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2e12bacb294b10019c2a01825e7dc791afe38d;p=openvswitch secchan: Fix memory leaks. --- 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); }