aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/eeprom.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 17:28:52 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 17:28:52 +0100
commitef852ae86eec6ce4fc9405299a53851ba0c9206e (patch)
tree1859328dba29e454f3f2df727b975cf5095ce43a /src/osmo-bts-sysmo/eeprom.c
parent96264b6dd980faec5c9fe4264b46cff9e82b93b2 (diff)
sysmobts: Fix resource leak in the error condition
Fixes: Coverity CID 1047336
Diffstat (limited to 'src/osmo-bts-sysmo/eeprom.c')
-rw-r--r--src/osmo-bts-sysmo/eeprom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/eeprom.c b/src/osmo-bts-sysmo/eeprom.c
index 6711243..77ddfff 100644
--- a/src/osmo-bts-sysmo/eeprom.c
+++ b/src/osmo-bts-sysmo/eeprom.c
@@ -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;
}