projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf19c40
)
bind: fix a memory leak
author
Marc Fournier
<marc.fournier@camptocamp.com>
Sat, 4 Apr 2015 22:54:37 +0000
(
00:54
+0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Sat, 4 Apr 2015 22:54:37 +0000
(
00:54
+0200)
src/bind.c
patch
|
blob
|
history
diff --git
a/src/bind.c
b/src/bind.c
index
45a4562
..
5324ceb
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-369,9
+369,11
@@
static int bind_xml_read_derive (xmlDoc *doc, xmlNode *node, /* {{{ */
{
ERROR ("bind plugin: Parsing string \"%s\" to derive value failed.",
str_ptr);
+ xmlFree(str_ptr);
return (-1);
}
+ xmlFree(str_ptr);
*ret_value = value.derive;
return (0);
} /* }}} int bind_xml_read_derive */