Mailinglist Archive: opensuse-bugs (10598 mails)

< Previous Next >
[Bug 543439] New: findutils-4.4.0-45.6: missing call to close
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 1 Oct 2009 04:58:05 -0600
  • Message-id: <bug-543439-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
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.

< Previous Next >