From: phk Date: Sun, 15 Jul 2007 10:58:11 +0000 (+0000) Subject: Plug minor memory leak. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccba461bb7717c3d1e351c03bd88f2f75a3ae559;p=varnish Plug minor memory leak. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1702 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index 06b8b8bc..8b8da7da 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -317,6 +317,7 @@ smf_init(struct stevedore *parent, const char *spec) return; } + asprintf(&q, "%s/varnish.XXXXXX", p); XXXAN(q); sc->fd = mkstemp(q); @@ -331,6 +332,7 @@ smf_init(struct stevedore *parent, const char *spec) XXXAN(sc->filename); free(q); smf_initfile(sc, size, 1); + free(p); } /*--------------------------------------------------------------------