Fix issue #954 (resource leak)

This commit is contained in:
Laurent Rineau 2016-03-29 13:33:55 +02:00
parent 145b3dbe77
commit ff515d72bb
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ void *_readBmpImage( const char *name,
filePos = ftell(fp);
rc = readUINT16little(fp, &fileType);
if (rc != 0) {
fclose(fp);
if ( get_static_verbose_bmp() )
fprintf( stderr, "%s: error in getting file type %s\n", proc, name );
return( (void*)NULL );