summaryrefslogtreecommitdiff
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
parentd86b38b96854bc60d4a2c4595e73cf53aa36d85c (diff)
Fix another file descriptor leak (related to previous Coverity #544)
-rw-r--r--ChangeLog5
-rw-r--r--src/encparse.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 254d387..1be7a3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);