Bug 11570

Summary: [PATCH libXfont] fix dirfd leak on CatalogueRescan()
Product: xorg Reporter: Ademar Reis <ademar>
Component: Lib/XfontAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.