[6.1] 8f250c0ea Plug minor leak when we fail loading a vcl
hermunn
hermunn at varnish-software.com
Wed Oct 24 09:29:18 UTC 2018
commit 8f250c0ead0db46bd227198d0cc307044205496b
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Sat Sep 29 06:57:50 2018 -0600
Plug minor leak when we fail loading a vcl
diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index dd3267ea2..6827b7379 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -347,6 +347,7 @@ vcl_KillBackends(struct vcl *vcl)
REPLACE(vdir->cli_name, NULL);
AN(vdir->methods->destroy);
vdir->methods->destroy(vdir->dir);
+ FREE_OBJ(vdir->dir);
FREE_OBJ(vdir);
}
}
More information about the varnish-commit
mailing list