Mailinglist Archive: opensuse-bugs (10598 mails)

< Previous Next >
[Bug 543470] New: firmwarekit-3-45.39: missing call to pclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 1 Oct 2009 06:44:20 -0600
  • Message-id: <bug-543470-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=543470


Summary: firmwarekit-3-45.39: missing call to pclose
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 firmwarekit-3-45.39
source code file linuxfirmwarekit/pciresource/pciinfo.c
function gather_pci_info
local variable file.

I notice the following code

file = popen(lspci_cmd, "r");

but I fail to notice any matching call to pclose. This looks like a
resource leak to me. Suggest add a call to pclose 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 >