Mailinglist Archive: opensuse-bugs (6597 mails)

< Previous Next >
[Bug 527506] New: libsatsolver-0.14.3-1.2: resource leak in loop
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 3 Aug 2009 03:07:25 -0600
  • Message-id: <bug-527506-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

Summary: libsatsolver-0.14.3-1.2: resource leak in loop
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 libsatsolver-0.14.3-1.2

For source code file satsolver-0.14.3/ext/repo_releasefile_products.c
around line 130 is the source code for the
function repo_add_releasefile_products.

I notice the following line of code

if ((fp = fopen(fullpath, "r")) == 0)

but I fail to find a matching call to fclose.
This seems to be a resource leak for each file
in the directory. Suggest code rework,
possibly by adding call to fclose.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups