Mailinglist Archive: opensuse-bugs (6630 mails)

< Previous Next >
[Bug 530325] New: sblim-cmpi-base-1.5.9-3.8: missing call to fclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 12 Aug 2009 06:20:32 -0600
  • Message-id: <bug-530325-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=530325


Summary: sblim-cmpi-base-1.5.9-3.8: 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 sblim-cmpi-base-1.5.9-3.8

For source code file
sblim-cmpi-base-1.5.9/OSBase_OperatingSystemStatisticalData.c
around line 160 is the source code for the
function get_cpu_page_data_24.

I notice the following line of code

if ((f = fopen(DATA_FILE,"r")) != NULL) {

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