[PATCH libXfont] fix dirfd leak on CatalogueRescan()
Ademar de Souza Reis Jr
ademar at mandriva.com.br
Tue Jul 10 11:18:50 PDT 2007
---
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);
--
1.5.2.2
More information about the xorg
mailing list