From: phk Date: Sun, 15 Jul 2007 10:57:55 +0000 (+0000) Subject: Don't leak all the tokens. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbdb4494b762e603431d2d83fce8636861f41c03;p=varnish Don't leak all the tokens. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1701 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_token.c b/varnish-cache/lib/libvcl/vcc_token.c index 973ba0fd..80ef0d58 100644 --- a/varnish-cache/lib/libvcl/vcc_token.c +++ b/varnish-cache/lib/libvcl/vcc_token.c @@ -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;