Mailinglist Archive: opensuse-bugs (6630 mails)

< Previous Next >
[Bug 530339] New: sbl-3.4.0-12.32: missing call to close
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 12 Aug 2009 06:47:51 -0600
  • Message-id: <bug-530339-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=530339


Summary: sbl-3.4.0-12.32: 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 sbl-3.4.0-12.32

For source code file sblsrc-3.4.0/sbl/HT/vario.c
around line 640 is the source code for the
function loadkeytbl.

I notice the following line of code

if ((tbl_fd = open (KEYTBL, O_RDONLY)) >= 0

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