projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc11a6e
)
zone plugin: plug leak on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:32:36 +0000
(10:32 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:32:36 +0000
(10:32 +0200)
[src/zone.c:124]: (error) Memory leak: ret
src/zone.c
patch
|
blob
|
history
diff --git
a/src/zone.c
b/src/zone.c
index
52dc553
..
0e9fee3
100644
(file)
--- a/
src/zone.c
+++ b/
src/zone.c
@@
-121,6
+121,7
@@
zone_find_stats(c_avl_tree_t *tree, zoneid_t zoneid)
}
if (!(key = malloc(sizeof(*key)))) {
WARNING("zone plugin: no memory");
+ free(ret);
return(NULL);
}
*key = zoneid;