From: Ethan Jackson Date: Tue, 22 May 2012 23:43:52 +0000 (-0700) Subject: memory: Memory leak when generating reports. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ff75c62b11010ed977e3e73d14253fe521f5b4;p=openvswitch memory: Memory leak when generating reports. Signed-off-by: Ethan Jackson --- diff --git a/lib/memory.c b/lib/memory.c index 779860eb..1babfe9f 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -119,6 +119,7 @@ compose_report(const struct simap *usage, struct ds *s) ds_put_format(s, "%s:%u ", node->name, node->data); } ds_chomp(s, ' '); + free(nodes); } /* Logs the contents of 'usage', as a collection of name-count pairs.