From: Quentin Rameau Date: Wed, 4 Nov 2015 14:42:42 +0000 (+0100) Subject: buildfile: don't forget to free temporary string bpath X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=commitdiff_plain;h=9b1e1873b0929ff397abf5ba523390c9f01f807f buildfile: don't forget to free temporary string bpath Signed-off-by: Christoph Lohmann <20h@r-36.net> --- diff --git a/surf.c b/surf.c index 586bde1..d36053e 100644 --- a/surf.c +++ b/surf.c @@ -273,6 +273,7 @@ buildfile(const char *path) g_free(dname); fpath = g_build_filename(bpath, bname, NULL); + g_free(bpath); g_free(bname); if (!(f = fopen(fpath, "a")))