[Bug 525038] New: fortune-1.0-995.2: missing call to closedir
http://bugzilla.novell.com/show_bug.cgi?id=525038 Summary: fortune-1.0-995.2: missing call to closedir 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 fortune-1.0-995.2 For source code file fortune/fortune/fortune.c around line 700 is the source code for the function add_dir. I notice the following code if ((dir = opendir(fp->path)) == NULL) { but no corresponding matching call to closedir. This looks like a resource leak to me. Suggest add call to closedir to close the leak. -- 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=525038
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=525038
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=525038
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525038#c1
Petr Uzel
participants (1)
-
bugzilla_noreply@novell.com