From ccba461bb7717c3d1e351c03bd88f2f75a3ae559 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 15 Jul 2007 10:58:11 +0000 Subject: [PATCH] Plug minor memory leak. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1702 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_file.c | 2 ++ 1 file changed, 2 insertions(+) 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); } /*-------------------------------------------------------------------- -- 2.39.5