memory: Memory leak when generating reports.
authorEthan Jackson <ethan@nicira.com>
Tue, 22 May 2012 23:43:52 +0000 (16:43 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 22 May 2012 23:43:52 +0000 (16:43 -0700)
Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/memory.c

index 779860ebc93ce573d16c753b5184844347fb0580..1babfe9fcae4d80b9ef1b094b4cabf70db12c54a 100644 (file)
@@ -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.