summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-04-10 16:15:12 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-04-10 16:15:12 +0000
commita9604c242f7f53a8cd26a2764c1a96e25ea2e1a7 (patch)
treed77b6fc41a59fff7fb52690ff4a8deb9f35652c1 /src
parentd86b38b96854bc60d4a2c4595e73cf53aa36d85c (diff)
Fix another file descriptor leak (related to previous Coverity #544)
Diffstat (limited to 'src')
-rw-r--r--src/encparse.c2
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);