sysmobts: Fix resource leak in the error condition
Fixes: Coverity CID 1047336
This commit is contained in:
parent
96264b6dd9
commit
ef852ae86e
|
@ -1256,6 +1256,7 @@ int eeprom_dump( int addr, int size, int hex )
|
|||
if (fseek( f, addr, SEEK_SET ) != 0)
|
||||
{
|
||||
perror( "eeprom fseek" );
|
||||
fclose( f );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue