Fix double free in error case.
This commit is contained in:
parent
80ba0571f3
commit
1af0f5741a
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
|
||||||
Stephan Kulow <coolo@suse.de>
|
Stephan Kulow <coolo@suse.de>
|
||||||
reviewed by: plam
|
reviewed by: plam
|
||||||
|
|
|
@ -743,7 +743,6 @@ FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config)
|
||||||
}
|
}
|
||||||
} while (strcmp (name_buf, cache_file) != 0);
|
} while (strcmp (name_buf, cache_file) != 0);
|
||||||
|
|
||||||
FcStrFree ((FcChar8 *)cache_file);
|
|
||||||
close (fd);
|
close (fd);
|
||||||
|
|
||||||
if (stat ((char *) cache_hashed, &cache_stat) == 0 &&
|
if (stat ((char *) cache_hashed, &cache_stat) == 0 &&
|
||||||
|
@ -753,6 +752,7 @@ FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config)
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FcStrFree ((FcChar8 *)cache_file);
|
||||||
FcStrFree ((FcChar8 *)cache_hashed);
|
FcStrFree ((FcChar8 *)cache_hashed);
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue