From: Florian Forster Date: Fri, 19 Jun 2015 08:54:02 +0000 (+0200) Subject: curl_xml plugin: Fix memory leak. X-Git-Tag: collectd-5.5.1~68^2~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df8e5c11682464b9f747788d8c928a4e520e5462;p=collectd.git curl_xml plugin: Fix memory leak. --- diff --git a/src/curl_xml.c b/src/curl_xml.c index 44e920c2..3b153964 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -919,6 +919,7 @@ static int cx_config_add_url (oconfig_item_t *ci) /* {{{ */ { ERROR ("curl_xml plugin: cx_config: " "Invalid key: %s", ci->key); + cx_free (db); return (-1); }