diff options
author | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2005-07-28 22:43:18 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2005-07-28 22:43:18 +0000 |
commit | 9a118fcc0ce0e202d31fcf579daf0dc03fc2f6bb (patch) | |
tree | fa28b1dddce7c9a14e18b79d99651a98380a0235 | |
parent | 9c9f67e12450035b7997c2c3bb3700ea51d8b3d2 (diff) |
Thu Jul 28 18:29:06 2005 Søren Sandmann <sandmann@redhat.com>XORG-6_8_99_901XORG-6_8_99_900
Fix double free when there no valid paths.
-rw-r--r-- | difs/fonts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/difs/fonts.c b/difs/fonts.c index 61b13c1..2ba7c42 100644 --- a/difs/fonts.c +++ b/difs/fonts.c @@ -717,8 +717,9 @@ set_font_path_elements( FontPathElementPtr *ftmp = (FontPathElementPtr *) fsrealloc(fplist, sizeof(FontPathElementPtr) * validpaths); - if (!ftmp) + if (!ftmp && validpaths) goto bail; + fplist = ftmp; npaths = validpaths; } |