varnish: fix leak on read
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 4 Jul 2015 20:49:49 +0000 (22:49 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 10 Jul 2015 09:31:20 +0000 (11:31 +0200)
Since VSM_Close doesn't free the object we leak a few bytes
every interval

src/varnish.c

index b962261..a27f9cf 100644 (file)
@@ -643,7 +643,7 @@ static int varnish_read (user_data_t *ud) /* {{{ */
 
 
        varnish_monitor (conf, stats);
-       VSM_Close (vd);
+       VSM_Delete (vd);
 
        return (0);
 } /* }}} */