Mailinglist Archive: opensuse-bugs (6597 mails)

< Previous Next >
[Bug 527495] New: libxml2-2.7.3-1.9: missing call to fclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 3 Aug 2009 02:32:09 -0600
  • Message-id: <bug-527495-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

Summary: libxml2-2.7.3-1.9: 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 libxml2-2.7.3-1.9

For source code file libxml2-2.7.3/xmllint.c
around line 2140 is the source code for the
function parseAndPrintFile.

I notice the following lines of code

f = fopen(filename, "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:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups