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

commit d164abcbf7016e2aeb367b4da51cfe0d6a47e447
Author: Priyank <priy...@frugalware.org>
Date:   Sat Jun 13 21:23:59 2009 +0530

Fix a memleak in selpkg()

diff --git a/src/plugins/select.c b/src/plugins/select.c
index aca5bba..dd5430d 100644
--- a/src/plugins/select.c
+++ b/src/plugins/select.c
@@ -271,16 +271,19 @@ GList *selpkg(char *category, GList *syncs)
char **arraychk;
GList *pkglist;
GList *ret;
+       char *tmp;

pkglist = group2pkgs(syncs, category, 1);
arraychk = glist2dialog(pkglist);

dlg_put_backtitle();
dlg_clear();
+       tmp = g_strdup_printf(("Please select packages to install from the %s 
section:"), category);
ret = fw_checklist(_("Selecting packages"),
-               g_strdup_printf(("Please select packages to install from the %s 
section:"), category),
+               tmp,
0, 0, 0, g_list_length(pkglist)/3, arraychk,
FLAG_CHECK);
+       FREE(tmp);
return(ret);
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to