r1702 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Sun Jul 15 12:58:11 CEST 2007
Author: phk
Date: 2007-07-15 12:58:11 +0200 (Sun, 15 Jul 2007)
New Revision: 1702
Modified:
trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
Plug minor memory leak.
Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c 2007-07-15 10:57:55 UTC (rev 1701)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c 2007-07-15 10:58:11 UTC (rev 1702)
@@ -317,6 +317,7 @@
return;
}
+
asprintf(&q, "%s/varnish.XXXXXX", p);
XXXAN(q);
sc->fd = mkstemp(q);
@@ -331,6 +332,7 @@
XXXAN(sc->filename);
free(q);
smf_initfile(sc, size, 1);
+ free(p);
}
/*--------------------------------------------------------------------
More information about the varnish-commit
mailing list