Mailinglist Archive: opensuse-bugs (6630 mails)

< Previous Next >
[Bug 530391] New: sendmail-8.14.3-50.65: missing call to close
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 12 Aug 2009 08:28:27 -0600
  • Message-id: <bug-530391-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=530391


Summary: sendmail-8.14.3-50.65: 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: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


I just had a look at factory package sendmail-8.14.3-50.65

For source code file sendmail-8.14.3/sendmail/queue.c
around line 560 is the source code for the
function queueup.

I notice the following line of code

dfd = open(df, O_WRONLY|O_CREAT|O_TRUNC|QF_O_EXTRA,
QueueFileMode);

but I fail to notice a matching call to close.
This looks like a resource leak to me. Suggest add call to close.

--
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 >