[master] f045b9ba0 Plug minor leak

Federico G. Schwindt fgsch at lodoss.net
Thu May 23 09:19:07 UTC 2019


commit f045b9ba0e1ece5cb2765192c6808d088d59f647
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Thu May 23 10:17:55 2019 +0100

    Plug minor leak

diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index 6187c8d97..adb98efe6 100644
--- a/bin/varnishd/mgt/mgt_vcc.c
+++ b/bin/varnishd/mgt/mgt_vcc.c
@@ -357,6 +357,7 @@ mgt_VccCompile(struct cli *cli, struct vclprog *vcl, const char *vclname,
 		}
 		free(vp.csrcfile);
 		free(vp.libfile);
+		free(vp.symfile);
 		free(vp.dir);
 		if (status) {
 			VCLI_Out(cli, "VCL compilation failed");
@@ -376,6 +377,7 @@ mgt_VccCompile(struct cli *cli, struct vclprog *vcl, const char *vclname,
 	free(p);
 	mgt_vcl_symtab(vcl, vj);
 	(void)unlink(vp.symfile);
+	free(vp.symfile);
 
 	if (!MGT_DO_DEBUG(DBG_VCL_KEEP))
 		(void)unlink(vp.csrcfile);


More information about the varnish-commit mailing list