diff --git a/sonic_platform_base/sonic_eeprom/eeprom_base.py b/sonic_platform_base/sonic_eeprom/eeprom_base.py index d505267072..7904f1e2a1 100644 --- a/sonic_platform_base/sonic_eeprom/eeprom_base.py +++ b/sonic_platform_base/sonic_eeprom/eeprom_base.py @@ -300,6 +300,7 @@ def update_cache(self, e): if self.cache_update_needed: self.write_cache(e) fcntl.flock(self.lock_file, fcntl.LOCK_UN) + self.lock_file.close() def update_eeprom_db(self, e): return 0