From: Ben Pfaff Date: Fri, 17 Aug 2012 20:59:15 +0000 (-0700) Subject: ofp-print: Fix memory leak printing flow stats replies. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb80d803016dcb2f4b616e138a0d919e48da1e27;p=openvswitch ofp-print: Fix memory leak printing flow stats replies. Found by valgrind. Signed-off-by: Ben Pfaff --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 3f5b6be3..99e64564 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1044,6 +1044,7 @@ ofp_print_flow_stats_reply(struct ds *string, const struct ofp_header *oh) ds_put_char(string, '\n'); ofp_print_flow_stats(string, &fs); } + ofpbuf_uninit(&ofpacts); } static void