diff --git a/apt_offline_core/AptOfflineCoreLib.py b/apt_offline_core/AptOfflineCoreLib.py index 2f0538e7..bc2543db 100644 --- a/apt_offline_core/AptOfflineCoreLib.py +++ b/apt_offline_core/AptOfflineCoreLib.py @@ -1529,6 +1529,8 @@ def magic_check_and_uncompress(self, archive_file=None, filename=None): else: log.err( "I couldn't understand file type %s.\n" % ( filename ) ) + #INFO: Close the handle and conserve precious memory + magicMIME.close() if retval: #CHANGE: track progress totalSize[0]+=1