secchan: Fix memory leaks.
authorBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 21:43:26 +0000 (13:43 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 21:43:26 +0000 (13:43 -0800)
secchan/ofproto.c

index 2e460ee575ba99048d83c4c35a3573f6cd5b79c5..367943586208de3a5b65e72a563138227159d964 100644 (file)
@@ -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);
         }