Skip to content

Commit

Permalink
Explicitly close files. Seems to help memory use.
Browse files Browse the repository at this point in the history
  • Loading branch information
koldinger committed Mar 14, 2019
1 parent b9b80dd commit 146cc97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/encryptDB.py
Expand Up @@ -107,6 +107,7 @@ def generateFullFileInfo(checksum, regenerator, cacheDir, nameMac, signature=Tru
sig.step(data)
data = i.read(64 * 1024)
# Return a handle on the full file object. Allows it to be reused in the next step
i.close()
return i

suffixes = ['','KB','MB','GB', 'TB', 'PB']
Expand Down

0 comments on commit 146cc97

Please sign in to comment.