[ovs-dev] [PATCH] ofp-print: Fix memory leak printing flow stats replies.

Ben Pfaff blp at nicira.com
Fri Aug 17 20:59:53 UTC 2012


Found by valgrind.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/ofp-print.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/ofp-print.c b/lib/ofp-print.c
index 3f5b6be..99e6456 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
-- 
1.7.2.5




More information about the dev mailing list