From: Ruben Kerkhof Date: Sat, 4 Jul 2015 20:49:49 +0000 (+0200) Subject: varnish: fix leak on read X-Git-Tag: collectd-5.5.1~6^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab94e78c24186f78b79f3a6fc624ce886adaa4b6;p=collectd.git varnish: fix leak on read Since VSM_Close doesn't free the object we leak a few bytes every interval --- diff --git a/src/varnish.c b/src/varnish.c index bf248456..c0460ab0 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -505,7 +505,7 @@ static int varnish_read (user_data_t *ud) /* {{{ */ stats = VSC_Main(vd); varnish_monitor (conf, stats); - VSM_Close (vd); + VSM_Delete (vd); return (0); } /* }}} */