]> err.no Git - varnish/commitdiff
Avoid a double free when we encounter a 'include' directive.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Sep 2007 22:26:31 +0000 (22:26 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Sep 2007 22:26:31 +0000 (22:26 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1972 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_compile.c

index 6bcbc2ed17a98f375a25fbaa293a3f9681432974..bf09a7f51082eadee23a9984624adccdd722f4de 100644 (file)
@@ -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;