Commit 1af0f574 authored by Patrick Lam's avatar Patrick Lam
Browse files

Fix double free in error case.

parent 80ba0571
2006-02-03 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcDirCacheUnlink):
Fix double free in error case.
2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
Stephan Kulow <coolo@suse.de>
reviewed by: plam
......
......@@ -743,7 +743,6 @@ FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config)
}
} while (strcmp (name_buf, cache_file) != 0);
FcStrFree ((FcChar8 *)cache_file);
close (fd);
if (stat ((char *) cache_hashed, &cache_stat) == 0 &&
......@@ -753,6 +752,7 @@ FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config)
goto bail;
}
FcStrFree ((FcChar8 *)cache_file);
FcStrFree ((FcChar8 *)cache_hashed);
return FcTrue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment