forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.13] pythonGH-124547: Clear instance dictionary if memory error occ…
…urs during object dealloc (pythonGH-124627) (python#124714) pythonGH-124547: Clear instance dictionary if memory error occurs during object dealloc (pythonGH-124627) (cherry picked from commit 0e21cc6) Co-authored-by: Mark Shannon <[email protected]>
- Loading branch information
1 parent
0a125d9
commit 80de976
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Core_and_Builtins/2024-09-26-12-19-13.gh-issue-124547.P_SHfU.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
When deallocating an object with inline values whose ``__dict__`` is still | ||
live: if memory allocation for the inline values fails, clear the | ||
dictionary. Prevents an interpreter crash. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters