]> git.proxmox.com Git - ovs.git/commitdiff
ofp-print-ofctl: Free group buckets.
authorSimon Horman <simon.horman@netronome.com>
Fri, 31 Oct 2014 08:14:47 +0000 (17:14 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2014 21:38:15 +0000 (14:38 -0700)
Found by inspection using make check-valgrind.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-print.c

index 43bfa172b81faeaa7c704b9a1292eb37a86e1f11..8dc7f06540e628938599f57849365cd5ce017784 100644 (file)
@@ -2167,6 +2167,7 @@ ofp_print_group_desc(struct ds *s, const struct ofp_header *oh)
         ds_put_char(s, '\n');
         ds_put_char(s, ' ');
         ofp_print_group(s, gd.group_id, gd.type, &gd.buckets);
+        ofputil_bucket_list_destroy(&gd.buckets);
      }
 }
 
@@ -2303,6 +2304,7 @@ ofp_print_group_mod(struct ds *s, const struct ofp_header *oh)
     ds_put_char(s, ' ');
 
     ofp_print_group(s, gm.group_id, gm.type, &gm.buckets);
+    ofputil_bucket_list_destroy(&gm.buckets);
 }
 
 static void