Mailinglist Archive: opensuse-bugs (6564 mails)

< Previous Next >
[Bug 528306] New: netpbm-10.35.64-2.2: missing call to fclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 5 Aug 2009 03:16:14 -0600
  • Message-id: <bug-528306-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=528306


Summary: netpbm-10.35.64-2.2: missing call to fclose
Classification: openSUSE
Product: openSUSE 11.2
Version: Factory
Platform: All
OS/Version: All
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 netpbm-10.35.64-2.2

For source code file netpbm-10.35.64/lib/libpm.c
around line 510 is the source code for the
function showNetpbmHelp.

I notice the following line of code

netpbmConfigFile = fopen(netpbmConfigFileName, "r");

but I fail to find a matching call to fclose.
This seems to be a resource leak. Suggest code rework,
possibly by adding call to fclose.

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