Mailinglist Archive: opensuse-bugs (6597 mails)

< Previous Next >
[Bug 527426] New: libcgroup1-0.33-2.3: 2 * missing calls to fclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 2 Aug 2009 10:51:29 -0600
  • Message-id: <bug-527426-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=527426


Summary: libcgroup1-0.33-2.3: 2 * missing calls 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 libcgroup1-0.33-2.3

For source code file libcgroup-0.33/cgclassify.c
around line 67 is the source code for the
function euid_of_pid.

I notice the following line of code

fp = fopen(path, "r");

but no matching call to fclose - suggest add one to
prevent a resource leak.

Very similar resource leak in the same file, for function
egid_of_pid.

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