Mailinglist Archive: opensuse-bugs (6597 mails)

< Previous Next >
[Bug 527501] New: linuxrc-3.4.3-1.7: missing call to fclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 3 Aug 2009 02:45:08 -0600
  • Message-id: <bug-527501-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=527501


Summary: linuxrc-3.4.3-1.7: missing call to fclose
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 linuxrc-3.4.3-1.7

For source code file linuxrc-3.4.3/util.c
around line 2120 is the source code for the
function util_hex_main.

I notice the following lines of code

f = fopen(argv[1], "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 >