Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-101046: Fix a potential memory leak in the parser when raising MemoryError#101051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| "void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *));" | ||
| ) | ||
| self.out_of_memory_return(f"!_new_children") | ||
| self.out_of_memory_return(f"!new_children",cleanup_code="PyMem_Free(_children);") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| self.out_of_memory_return(f"!new_children",cleanup_code="PyMem_Free(_children);") | |
| self.out_of_memory_return(f"!_new_children",cleanup_code="PyMem_Free(_children);") |
…n raising MemoryError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM!
Thanks@pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10, 3.11. |
Sorry,@pablogsal, I could not cleanly backport this to |
Sorry@pablogsal, I had trouble checking out the |
Sorry,@pablogsal, I could not cleanly backport this to |
…n raising MemoryError (pythonGH-101051).(cherry picked from commit1de4395)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
bedevere-bot commentedJan 16, 2023
GH-101085 is a backport of this pull request to the3.11 branch. |
…n raising MemoryError (pythonGH-101051).(cherry picked from commit1de4395)Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
bedevere-bot commentedJan 16, 2023
GH-101086 is a backport of this pull request to the3.10 branch. |
@pablogsal Does this still need backporting to 3.9? Otherwise let's remove the backport label. |
Removed |
Uh oh!
There was an error while loading.Please reload this page.