summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2014-10-31 17:14:47 +0900
committerBen Pfaff <blp@nicira.com>2014-10-31 14:39:11 -0700
commit71fa79692e3177e186cb2c3082a686d4197e58f4 (patch)
treea25428b1178d3348d3657fe5e134137afe895b95
parent018414ae78f2613b0b4c7f6d0fcfcb9c781fb5af (diff)
downloadopenvswitch-71fa79692e3177e186cb2c3082a686d4197e58f4.tar.gz
ofp-print-ofctl: Free group buckets.
Found by inspection using make check-valgrind. Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--lib/ofp-print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c
index e14bd6eac..6e6195b2b 100644
--- a/lib/ofp-print.c
+++ b/lib/ofp-print.c
@@ -2360,6 +2360,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);
}
}
@@ -2500,6 +2501,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