[master] 5e263a0a1 Plug minor leak when we fail loading a vcl
Federico G. Schwindt
fgsch at lodoss.net
Sat Sep 29 13:01:11 UTC 2018
commit 5e263a0a17d88f1de25b34fc35a4d07656665ebf
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