From: Florian Forster Date: Fri, 19 Jun 2015 08:54:02 +0000 (+0200) Subject: apache plugin: Fix memory leak. X-Git-Tag: collectd-5.5.1~68^2~35 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0eedd800886e1f4a6e0b16f6ae95c3201a14fb7;p=collectd.git apache plugin: Fix memory leak. --- diff --git a/src/apache.c b/src/apache.c index f0ab22a8..16f7acd3 100644 --- a/src/apache.c +++ b/src/apache.c @@ -78,6 +78,7 @@ static void apache_free (apache_t *st) curl_easy_cleanup(st->curl); st->curl = NULL; } + sfree (st); } /* apache_free */ static size_t apache_curl_callback (void *buf, size_t size, size_t nmemb,