Bug 11570 - [PATCH libXfont] fix dirfd leak on CatalogueRescan()
Summary: [PATCH libXfont] fix dirfd leak on CatalogueRescan()
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xfont (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 10:30 UTC by Ademar Reis
Modified: 2007-09-27 13:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ademar Reis 2007-07-12 10:30:30 UTC
Trivial patch, reproduced below:

---
 src/fontfile/catalogue.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/fontfile/catalogue.c b/src/fontfile/catalogue.c
index 812b050..2a65e86 100644
--- a/src/fontfile/catalogue.c
+++ b/src/fontfile/catalogue.c
@@ -206,6 +206,8 @@ CatalogueRescan (FontPathElementPtr fpe)
        }
     }

+    closedir(dir);
+
     qsort(cat->fpeList,
          cat->fpeCount, sizeof cat->fpeList[0], ComparePriority);
Comment 1 Matthieu Herrb 2007-09-27 13:51:15 UTC
fixed in commit 9f86614394af81bc484cf00f3e9996510d3718cb


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.