From cdf9547376ac4c826ea99e1429402d6621621dbf Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 20 Sep 2007 22:26:31 +0000 Subject: [PATCH] Avoid a double free when we encounter a 'include' directive. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1972 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_compile.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 6bcbc2ed..bf09a7f5 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -461,9 +461,6 @@ vcc_resolve_includes(struct tokenlist *tl) 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; -- 2.39.5