Bug 1006 - [PENDING] pkg-config leaks file descriptors
Summary: [PENDING] pkg-config leaks file descriptors
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: All All
: high major
Assignee: Scott James Remnant
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-07 05:11 UTC by Thomas Klausner
Modified: 2005-03-27 14:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch that fixes the file descriptor leak. (261 bytes, patch)
2004-08-07 05:11 UTC, Thomas Klausner
Details | Splinter Review

Description Thomas Klausner 2004-08-07 05:11:12 UTC
pkg-config-0.15.0 does not close the files it opens. Eventually, it runs against
the limit for concurrently opened files and fails.

The problem is in parse.c:parse_package_file; every file is fopen()ed, but none
is fclose()d.
Comment 1 Thomas Klausner 2004-08-07 05:11:56 UTC
Created attachment 585 [details] [review]
Patch that fixes the file descriptor leak.
Comment 2 Tollef Fog Heen 2005-02-21 00:10:21 UTC
Fixed in CVS.
Comment 3 Tollef Fog Heen 2005-03-28 08:07:26 UTC
pkgconfig 0.16 has been released and contains a fix for this bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.