Commit ad6a2620 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Plug minor memory leak.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1702 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent eb6057bb
...@@ -317,6 +317,7 @@ smf_init(struct stevedore *parent, const char *spec) ...@@ -317,6 +317,7 @@ smf_init(struct stevedore *parent, const char *spec)
return; return;
} }
asprintf(&q, "%s/varnish.XXXXXX", p); asprintf(&q, "%s/varnish.XXXXXX", p);
XXXAN(q); XXXAN(q);
sc->fd = mkstemp(q); sc->fd = mkstemp(q);
...@@ -331,6 +332,7 @@ smf_init(struct stevedore *parent, const char *spec) ...@@ -331,6 +332,7 @@ smf_init(struct stevedore *parent, const char *spec)
XXXAN(sc->filename); XXXAN(sc->filename);
free(q); free(q);
smf_initfile(sc, size, 1); smf_initfile(sc, size, 1);
free(p);
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment