Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject#127910
Conversation
|
How did you find this? Are you able to write a test? |
|
I saw the snippet of |
|
I took some time to think about how to write a test. If this were a refleak, I would probably launch a Python process with Also, it seems that the only way to trigger this issue is by testing |
|
Thanks @berkerpeksag for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
pythonGH-127910) After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails. (cherry picked from commit cfeaa99) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
GH-128006 is a backport of this pull request to the 3.13 branch. |
…ngObject (GH-128006) Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject (GH-127910) After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails. (cherry picked from commit cfeaa99) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
pythonGH-127910) After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails.
After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails.