[Bug 525274] New: gftp-2.0.18-251.39: 2 * missing call to fclose
http://bugzilla.novell.com/show_bug.cgi?id=525274 Summary: gftp-2.0.18-251.39: 2 * missing call to fclose Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package gftp-2.0.18-251.39 For source code file gftp-2.0.18/lib/config_file.c around line 200 is the source code for the function gftp_read_bookmarks. I notice the following code if ((bmfile = fopen (tempstr, "r")) == NULL) but no corresponding matching calls to fclose. This looks like a resource leak to me. Suggest add calls to fclose to close the leak. Similar problems with local variable conffile in function gftp_read_config_file. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=525274
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=525274
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525274#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=525274
http://bugzilla.novell.com/show_bug.cgi?id=525274#c
Petr Gajdos
http://bugzilla.novell.com/show_bug.cgi?id=525274
http://bugzilla.novell.com/show_bug.cgi?id=525274#c2
Petr Gajdos
participants (1)
-
bugzilla_noreply@novell.com