projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d3ee0b
)
memory: Memory leak when generating reports.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 22 May 2012 23:43:52 +0000
(16:43 -0700)
committer
Ethan 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
patch
|
blob
|
history
diff --git
a/lib/memory.c
b/lib/memory.c
index 779860ebc93ce573d16c753b5184844347fb0580..1babfe9fcae4d80b9ef1b094b4cabf70db12c54a 100644
(file)
--- 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.