Skip to content

Commit

Permalink
Close MIME file handle and conserve precious memory
Browse files Browse the repository at this point in the history
Closes: #62
  • Loading branch information
rickysarraf committed Mar 7, 2017
1 parent 0b78491 commit 65d2316
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apt_offline_core/AptOfflineCoreLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d2316

Please sign in to comment.