[master] ccac543 Plug minor leak when we cancel a loading VCL

Federico G. Schwindt fgsch at lodoss.net
Thu Aug 24 13:01:06 CEST 2017


commit ccac543e98b797f35daec57dd2cf478d7c1953d7
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Thu Aug 24 11:57:21 2017 +0100

    Plug minor leak when we cancel a loading VCL

diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index 2d5de6b..1ff9428 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -721,6 +721,7 @@ vcl_cancel_load(VRT_CTX, struct cli *cli, const char *name, const char *step)
 	*ctx->handling = 0;
 	AZ(vcl->conf->event_vcl(ctx, VCL_EVENT_DISCARD));
 	vcl_KillBackends(vcl);
+	free(vcl->loaded_name);
 	VCL_Close(&vcl);
 }
 



More information about the varnish-commit mailing list