diff --git a/src/mega/mega.py b/src/mega/mega.py index 906b0db..a87bd1e 100644 --- a/src/mega/mega.py +++ b/src/mega/mega.py @@ -716,6 +716,7 @@ def _download_file(self, chunk = input_file.read(chunk_size) chunk = aes.decrypt(chunk) temp_output_file.write(chunk) + temp_output_file.close() encryptor = AES.new(k_str, AES.MODE_CBC, iv_str) for i in range(0, len(chunk) - 16, 16):