Skip to content

gh-140067: Fix memory leak in sub-interpreter creation (#140111) #140261

Merged
kumaraditya303 merged 3 commits intopython:mainfrom
kumaraditya303:daemon
Oct 18, 2025
Merged

gh-140067: Fix memory leak in sub-interpreter creation (#140111) #140261
kumaraditya303 merged 3 commits intopython:mainfrom
kumaraditya303:daemon

Conversation

@kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Oct 17, 2025

ashm-dev and others added 2 commits October 17, 2025 22:04
…140111)

Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally. 

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@kumaraditya303 kumaraditya303 merged commit 58c44c2 into python:main Oct 18, 2025
45 checks passed
@kumaraditya303 kumaraditya303 deleted the daemon branch October 18, 2025 11:07
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
…140111)  (python#140261)

Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally. 

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants