Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=setup.git;a=commitdiff;h=110373d407c64888ec5af47162ebbffce0346167

commit 110373d407c64888ec5af47162ebbffce0346167
Author: Priyank <priy...@frugalware.org>
Date:   Sun Jun 14 13:46:27 2009 +0530

another leak fix

diff --git a/src/plugins/formatdisk.c b/src/plugins/formatdisk.c
index e1ca456..2a67072 100644
--- a/src/plugins/formatdisk.c
+++ b/src/plugins/formatdisk.c
@@ -581,7 +581,9 @@ int run(GList **config)

// move temporarily stuff to the final location
chdir(TARGETDIR);
-       makepath(g_strdup_printf("%s/%s", TARGETDIR, "/etc/profile.d"));
+       np = g_strdup_printf("%s/%s", TARGETDIR, "/etc/profile.d");
+       makepath(np);
+       FREE(np);
op = (char*)data_get(*config, "fstab");
np = g_strdup_printf("%s/%s", TARGETDIR, "/etc/fstab");
copyfile(op, np);
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to