[Bug 543439] New: findutils-4.4.0-45.6: missing call to close
http://bugzilla.novell.com/show_bug.cgi?id=543439 Summary: findutils-4.4.0-45.6: missing call to close Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem 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 findutils-4.4.0-45.6 source code file findutils-4.4.0/find/pred.c function pred_empty local variable fd. I notice the following code if ((fd = openat(state.cwd_dir_fd, state.rel_pathname, O_RDONLY but I fail to notice any mathcing call to close. This looks like a resource leak to me. Suggest add a call to close near the end of the block to plug 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=543439
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=543439
User pth@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543439#c1
--- Comment #1 from Philipp Thomas
http://bugzilla.novell.com/show_bug.cgi?id=543439
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543439#c2
--- Comment #2 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=543439
User pth@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543439#c3
Philipp Thomas
participants (1)
-
bugzilla_noreply@novell.com