[hackers] [surf] buildfile: don't forget to free temporary string bpath

From: Quentin Rameau <quinq+hackers_AT_fifth.space>
Date: Wed, 4 Nov 2015 15:42:42 +0100

---
 surf.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/surf.c b/surf.c
index 586bde1..d36053e 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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")))
-- 
2.6.2
Received on Wed Nov 04 2015 - 15:42:42 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 04 2015 - 15:48:10 CET