diff options
author | Akira TAGOH <akira@tagoh.org> | 2013-04-09 11:34:35 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-04-09 11:34:35 +0900 |
commit | 9299155b5247255d6b6687448173056c3ca8d09b (patch) | |
tree | b246286345ee5680a0c2bf1ef4e50eb79e08ce2e /src/fchash.c | |
parent | 18bf57c70aafcad031c0b43756b754dcaf6a756a (diff) | |
download | fontconfig-9299155b5247255d6b6687448173056c3ca8d09b.tar.gz |
Ensure closing fp on error
Diffstat (limited to 'src/fchash.c')
-rw-r--r-- | src/fchash.c | 2 |
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)) { |