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 /src | |
parent | d86b38b96854bc60d4a2c4595e73cf53aa36d85c (diff) |
Fix another file descriptor leak (related to previous Coverity #544)
Diffstat (limited to 'src')
-rw-r--r-- | src/encparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |