Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Lib/concurrent/futures/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def _process_worker(call_queue, result_queue, initializer, initargs):
_sendback_result(result_queue, call_item.work_id, exception=exc)
else:
_sendback_result(result_queue, call_item.work_id, result=r)
del r

# Liberate the resource as soon as possible, to avoid holding onto
# open files or shared memory that is not needed anymore
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Librates the return value of a ProcessPoolExecutor _process_worker after it's no longer needed to free memory