Skip to content

Commit 4de4ec3

Browse files
committed
close tar/zip after extraction
releases file handler explicitly
1 parent 76a97b5 commit 4de4ec3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mineos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def import_server(self, path, filename):
448448
'archive contains files with absolute path or ..')
449449

450450
archive_.extractall(self.env['cwd'])
451+
archive_.close()
451452

452453
if not os.path.samefile(self.env['cwd'], os.path.join(self.env['cwd'], prefix_)):
453454
prefixed_dir = os.path.join(self.env['cwd'], prefix_)

0 commit comments

Comments
 (0)