diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-12 17:28:52 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-12 17:28:52 +0100 |
commit | ef852ae86eec6ce4fc9405299a53851ba0c9206e (patch) | |
tree | 1859328dba29e454f3f2df727b975cf5095ce43a /src/osmo-bts-sysmo/eeprom.c | |
parent | 96264b6dd980faec5c9fe4264b46cff9e82b93b2 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/eeprom.c b/src/osmo-bts-sysmo/eeprom.c index 67112435..77ddfff3 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; } |