From: Marc Fournier Date: Sat, 4 Apr 2015 22:54:37 +0000 (+0200) Subject: bind: fix a memory leak X-Git-Tag: collectd-5.5.0~59 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d0ef486144dea177f42f2d8ff88dd83adb2d367;p=collectd.git bind: fix a memory leak --- diff --git a/src/bind.c b/src/bind.c index 45a45620..5324ceb1 100644 --- 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 */