ofp-print: Fix memory leak printing flow stats replies.
authorBen Pfaff <blp@nicira.com>
Fri, 17 Aug 2012 20:59:15 +0000 (13:59 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 17 Aug 2012 22:11:08 +0000 (15:11 -0700)
Found by valgrind.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-print.c

index 3f5b6be380e34617623aeb826a9f343a005665f6..99e64564ce41598344b43df10fd96a0de9f64975 100644 (file)
@@ -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