X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvarnish.c;h=c0460ab042acc9ff9381765ab68a6e5d28b4b9de;hb=c1219a1c9db2e8400e2ee94b87f86ccd441485d5;hp=3a8dddd78ac05bbf2633c362dda2f90a350e0d8a;hpb=336ea1e244e6c5d1d8bf8b42774b08c03a932039;p=collectd.git diff --git a/src/varnish.c b/src/varnish.c index 3a8dddd7..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); } /* }}} */ @@ -651,6 +651,7 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */ { WARNING ("Varnish plugin: \"Instance\" blocks accept only " "one argument."); + sfree (conf); return (EINVAL); } @@ -750,6 +751,7 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */ WARNING ("Varnish plugin: No metric has been configured for " "instance \"%s\". Disabling this instance.", (conf->instance == NULL) ? "localhost" : conf->instance); + sfree (conf); return (EINVAL); }