From bbdb4494b762e603431d2d83fce8636861f41c03 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 15 Jul 2007 10:57:55 +0000 Subject: [PATCH] Don't leak all the tokens. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1701 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_token.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5