varnish: fix leak on read
[collectd.git] / 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);
 } /* }}} */