]> err.no Git - varnish/commitdiff
Don't leak all the tokens.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 15 Jul 2007 10:57:55 +0000 (10:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 15 Jul 2007 10:57:55 +0000 (10:57 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1701 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_token.c

index 973ba0fd6a647752d028275576954f464f9c31d4..80ef0d581d06b97131a5c4c5a042b43cd515e0a0 100644 (file)
@@ -255,7 +255,7 @@ vcc_AddToken(struct tokenlist *tl, unsigned tok, const char *b, const char *e)
 {
        struct token *t;
 
-       t = calloc(sizeof *t, 1);
+       t = TlAlloc(tl, sizeof *t);
        assert(t != NULL);
        t->tok = tok;
        t->b = b;