varnish: fix leak on read
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 4 Jul 2015 20:49:49 +0000 (22:49 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Thu, 14 Jan 2016 10:05:02 +0000 (11:05 +0100)
Since VSM_Close doesn't free the object we leak a few bytes
every interval

src/varnish.c

index bf24845..c0460ab 100644 (file)
@@ -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);
 } /* }}} */