]> err.no Git - varnish/commitdiff
Plug minor memory leak.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 15 Jul 2007 10:58:11 +0000 (10:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 15 Jul 2007 10:58:11 +0000 (10:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1702 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_file.c

index 06b8b8bcd333db51f37d0a79b4c771847604b181..8b8da7da42759faf93463cdec0eb2036e72d4e1b 100644 (file)
@@ -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);
 }
 
 /*--------------------------------------------------------------------