diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2006-04-10 16:15:12 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2006-04-10 16:15:12 +0000 |
commit | a9604c242f7f53a8cd26a2764c1a96e25ea2e1a7 (patch) | |
tree | d77b6fc41a59fff7fb52690ff4a8deb9f35652c1 | |
parent | d86b38b96854bc60d4a2c4595e73cf53aa36d85c (diff) |
Fix another file descriptor leak (related to previous Coverity #544)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/encparse.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-04-10 Alan Coopersmith <alan.coopersmith@sun.com> + + * src/encparse.c (FontEncReallyReallyLoad): + Fix another file descriptor leak (related to previous Coverity #544) + 2006-04-06 Adam Jackson <ajax@freedesktop.org> * src/encparse.c: diff --git a/src/encparse.c b/src/encparse.c index 2263c95..62a889d 100644 --- a/src/encparse.c +++ b/src/encparse.c @@ -1,3 +1,4 @@ +/* $XdotOrg: $ */ /* Copyright (c) 1998-2001 by Juliusz Chroboczek @@ -879,6 +880,7 @@ FontEncReallyReallyLoad(const char *charset, f = FontFileOpen(buf); if(f == NULL) { + fclose(file); return NULL; } encoding = parseEncodingFile(f, 0); |