r1972 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 21 00:26:31 CEST 2007


Author: phk
Date: 2007-09-21 00:26:31 +0200 (Fri, 21 Sep 2007)
New Revision: 1972

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_compile.c
Log:
Avoid a double free when we encounter a 'include' directive.


Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.c	2007-09-20 22:25:27 UTC (rev 1971)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.c	2007-09-20 22:26:31 UTC (rev 1972)
@@ -461,9 +461,6 @@
 		TAILQ_REMOVE(&tl->tokens, t, list);
 		TAILQ_REMOVE(&tl->tokens, t1, list);
 		TAILQ_REMOVE(&tl->tokens, t2, list);
-		vcc_FreeToken(t);
-		vcc_FreeToken(t1);
-		vcc_FreeToken(t2);
 		if (!tl->err)
 			vcc_resolve_includes(tl);
 		return;




More information about the varnish-commit mailing list