diff options
-rw-r--r-- | src/fontfile/catalogue.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fontfile/catalogue.c b/src/fontfile/catalogue.c index 5df01c2..b5c0331 100644 --- a/src/fontfile/catalogue.c +++ b/src/fontfile/catalogue.c @@ -151,14 +151,12 @@ CatalogueRescan (FontPathElementPtr fpe, Bool forceScan) if ((forceScan == FALSE) && (statbuf.st_mtime <= cat->mtime)) return Successful; + CatalogueUnrefFPEs (fpe); + dir = opendir(path); if (dir == NULL) - { - free(cat); return BadFontPath; - } - CatalogueUnrefFPEs (fpe); while (entry = readdir(dir), entry != NULL) { char *name; |