From cb80d803016dcb2f4b616e138a0d919e48da1e27 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 17 Aug 2012 13:59:15 -0700 Subject: [PATCH] ofp-print: Fix memory leak printing flow stats replies. Found by valgrind. Signed-off-by: Ben Pfaff --- lib/ofp-print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 3f5b6be38..99e64564c 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 -- 2.43.0