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

From: <git_AT_suckless.org>
Date: Wed, 4 Nov 2015 16:47:40 +0100 (CET)

commit 9b1e1873b0929ff397abf5ba523390c9f01f807f
Author: Quentin Rameau <quinq+hackers_AT_fifth.space>
AuthorDate: Wed Nov 4 15:42:42 2015 +0100
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Wed Nov 4 16:47:04 2015 +0100

    buildfile: don't forget to free temporary string bpath
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

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")))
Received on Wed Nov 04 2015 - 16:47:40 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 04 2015 - 16:48:12 CET