From d0ff75c62b11010ed977e3e73d14253fe521f5b4 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 22 May 2012 16:43:52 -0700 Subject: [PATCH] memory: Memory leak when generating reports. Signed-off-by: Ethan Jackson --- lib/memory.c | 1 + 1 file changed, 1 insertion(+) 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. -- 2.30.2