Ensure closing fp on error
authorAkira TAGOH <akira@tagoh.org>
Tue, 9 Apr 2013 02:34:35 +0000 (11:34 +0900)
committerAkira TAGOH <akira@tagoh.org>
Tue, 9 Apr 2013 02:34:35 +0000 (11:34 +0900)
src/fchash.c

index 827b20f..4ea5f37 100644 (file)
@@ -220,7 +220,7 @@ FcHashGetSHA256DigestFromFile (const FcChar8 *filename)
 
     ret = FcHashInitSHA256Digest ();
     if (!ret)
-       return NULL;
+       goto bail0;
 
     while (!feof (fp))
     {