ofproto: Fix memory leak in rule_actions_unref().
authorBen Pfaff <blp@nicira.com>
Tue, 24 Sep 2013 21:22:14 +0000 (14:22 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 24 Sep 2013 21:22:56 +0000 (14:22 -0700)
Found by valgrind.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto.c

index cebf5a5..282ed0b 100644 (file)
@@ -2468,6 +2468,7 @@ rule_actions_unref(struct rule_actions *actions)
 
         atomic_sub(&actions->ref_count, 1, &orig);
         if (orig == 1) {
+            free(actions->ofpacts);
             free(actions);
         } else {
             ovs_assert(orig != 0);