aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/eeprom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-sysmo/eeprom.c')
-rw-r--r--src/osmo-bts-sysmo/eeprom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/eeprom.c b/src/osmo-bts-sysmo/eeprom.c
index 272d41a0..e3b94fc3 100644
--- a/src/osmo-bts-sysmo/eeprom.c
+++ b/src/osmo-bts-sysmo/eeprom.c
@@ -1323,6 +1323,13 @@ int eeprom_dump( int addr, int size, int hex )
static FILE *g_file;
+void eeprom_free_resources(void)
+{
+ if (g_file)
+ fclose(g_file);
+ g_file = NULL;
+}
+
/**
* Read up to 'size' bytes of data from the EEPROM starting at offset 'addr'.
*/