[3.15] gh-155978: Fix leak in update_slot_after_setattr() (GH-155979) · nascheme/cpython@fe175da · GitHub
Skip to content

Commit fe175da

Browse files
committed
[3.15] pythongh-155978: Fix leak in update_slot_after_setattr() (pythonGH-155979)
(cherry picked from commit f381d16) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
1 parent ac4e5d2 commit fe175da

3 files changed

Lines changed: 36 additions & 8 deletions

File tree

Lib/test/test_free_threading/test_type.py

Lines changed: 21 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a memory leak in the free-threaded build when setting or deleting a
2+
special method (such as ``__repr__``) on a class that has many subclasses.

Objects/typeobject.c

Lines changed: 13 additions & 8 deletions

0 commit comments

Comments
 (0)