summaryrefslogtreecommitdiff
path: root/src/fchash.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2013-04-09 11:34:35 +0900
committerAkira TAGOH <akira@tagoh.org>2013-04-09 11:34:35 +0900
commit9299155b5247255d6b6687448173056c3ca8d09b (patch)
treeb246286345ee5680a0c2bf1ef4e50eb79e08ce2e /src/fchash.c
parent18bf57c70aafcad031c0b43756b754dcaf6a756a (diff)
downloadfontconfig-9299155b5247255d6b6687448173056c3ca8d09b.tar.gz
Ensure closing fp on error
Diffstat (limited to 'src/fchash.c')
-rw-r--r--src/fchash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fchash.c b/src/fchash.c
index 827b20f..4ea5f37 100644
--- a/src/fchash.c
+++ b/src/fchash.c
@@ -220,7 +220,7 @@ FcHashGetSHA256DigestFromFile (const FcChar8 *filename)
ret = FcHashInitSHA256Digest ();
if (!ret)
- return NULL;
+ goto bail0;
while (!feof (fp))
{