r1701 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Sun Jul 15 12:57:55 CEST 2007


Author: phk
Date: 2007-07-15 12:57:55 +0200 (Sun, 15 Jul 2007)
New Revision: 1701

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_token.c
Log:
Don't leak all the tokens.


Modified: trunk/varnish-cache/lib/libvcl/vcc_token.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_token.c	2007-07-15 10:22:39 UTC (rev 1700)
+++ trunk/varnish-cache/lib/libvcl/vcc_token.c	2007-07-15 10:57:55 UTC (rev 1701)
@@ -255,7 +255,7 @@
 {
 	struct token *t;
 
-	t = calloc(sizeof *t, 1);
+	t = TlAlloc(tl, sizeof *t);
 	assert(t != NULL);
 	t->tok = tok;
 	t->b = b;




More information about the varnish-commit mailing list