From: phk Date: Thu, 20 Sep 2007 22:26:31 +0000 (+0000) Subject: Avoid a double free when we encounter a 'include' directive. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf9547376ac4c826ea99e1429402d6621621dbf;p=varnish 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 --- 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;