projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec641ae
)
Fix a memory leak on shutdown
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 25 Jul 2015 10:32:06 +0000
(12:32 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Mon, 3 Aug 2015 21:07:48 +0000
(23:07 +0200)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
5d31e46
..
97352c4
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-181,13
+181,13
@@
static void destroy_read_heap (void) /* {{{ */
while (42)
{
-
callback_func_t *c
f;
+
read_func_t *r
f;
-
c
f = c_heap_get_root (read_heap);
- if (
c
f == NULL)
+
r
f = c_heap_get_root (read_heap);
+ if (
r
f == NULL)
break;
-
- destroy_callback (
c
f);
+ sfree (rf->rf_name);
+ destroy_callback (
(callback_func_t *) r
f);
}
c_heap_destroy (read_heap);