sysmobts: Fix resource leak in the error condition

Fixes: Coverity CID 1047336
This commit is contained in:
Holger Hans Peter Freyther 2013-12-12 17:28:52 +01:00
parent 96264b6dd9
commit ef852ae86e
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}