[Bug 525333] New: gup-0.3-986.2: one resource leak, one memory leak
http://bugzilla.novell.com/show_bug.cgi?id=525333 Summary: gup-0.3-986.2: one resource leak, one memory leak 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 gup-0.3-986.2 For source code file gup/newsgroups.c around line 80 is the source code for the function load_newsgroups. I notice the following line of code fd = open(newsgroups_path, O_RDONLY); but no corresponding calls to close. This looks like a resource leak to me. Suggest add call to close. Similar problems with local variable desc. It seems to create a memory leak. desc = (char *)malloc((unsigned int) stat.st_size + 1); -- 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=525333
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=525333
User mls@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525333#c1
Michael Schröder
participants (1)
-
bugzilla_noreply@novell.com