Skip to content

Commit

Permalink
fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
knockknockyoo committed Feb 13, 2025
1 parent 33daa5b commit 08bc986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/s3util.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def put_file_obj(self, file_size, key, data, md5_base64):
)
progress(len(chunk)) # Update progress
finally:
tqdm._instances.clear()
progress._progress.close()
if hasattr(data, "close"):
data.close()
Expand Down

0 comments on commit 08bc986

Please sign in to comment.