From: Simon Horman Date: Fri, 31 Oct 2014 08:14:47 +0000 (+0900) Subject: ofp-print-ofctl: Free group buckets. X-Git-Tag: v2.3.1~13 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=8a19eca535525c4f1a82578700660236f3b13f76;hp=7f9d9f27e787943d7d419d6bea184e4c112f0b26;p=cascardo%2Fovs.git ofp-print-ofctl: Free group buckets. Found by inspection using make check-valgrind. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 790d5867a..e3a41726f 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -2402,6 +2402,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); } } @@ -2542,6 +2543,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 const char *