buildfile: don't forget to free temporary string bpath
authorQuentin Rameau <quinq+hackers@fifth.space>
Wed, 4 Nov 2015 14:42:42 +0000 (15:42 +0100)
committerChristoph Lohmann <20h@r-36.net>
Wed, 4 Nov 2015 15:47:04 +0000 (16:47 +0100)
Signed-off-by: Christoph Lohmann <20h@r-36.net>
surf.c

diff --git a/surf.c b/surf.c
index 586bde1..d36053e 100644 (file)
--- 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")))