Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=f5cde5db68230aa1dd391bcd24f5cd49588e3fe1
commit f5cde5db68230aa1dd391bcd24f5cd49588e3fe1
Author: Priyank <[EMAIL PROTECTED]>
Date: Sat Feb 9 12:53:56 2008 +0530
gfpm-repomanager: fixed a small memleak
diff --git a/src/gfpm-repomanager.c b/src/gfpm-repomanager.c
index afe67eb..8c0e407 100644
--- a/src/gfpm-repomanager.c
+++ b/src/gfpm-repomanager.c
@@ -378,12 +378,12 @@ gfpm_servmgr_delete_server (const char *server)
if ((fp=fopen(path,"r"))==NULL)
{
gfpm_error (_("Error"), _("Error opening repository file"));
- return;
+ goto cleanup;
}
if ((tp=tmpfile())==NULL)
{
gfpm_error (_("Error"), _("Unable to create a temporary file"));
- return;
+ goto cleanup;
}
while (fgets(line, PATH_MAX, fp))
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git