diff --git a/src/varnish.c b/src/varnish.c
index 95303bec9bb328c1e8b8c84e3437dd286472d047..aee72471a4d6b62d8e8d13266b47e8ff742b34a0 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
{
WARNING ("Varnish plugin: \"Instance\" blocks accept only "
"one argument.");
+ sfree (conf);
return (EINVAL);
}
WARNING ("Varnish plugin: No metric has been configured for "
"instance \"%s\". Disabling this instance.",
(conf->instance == NULL) ? "localhost" : conf->instance);
+ sfree (conf);
return (EINVAL);
}