gh-155978: Fix leak in update_slot_after_setattr() (#155979) · python/cpython@f381d16 · GitHub
Skip to content

Commit f381d16

Browse files
authored
gh-155978: Fix leak in update_slot_after_setattr() (#155979)
1 parent a7bb524 commit f381d16

3 files changed

Lines changed: 35 additions & 8 deletions

File tree

Lib/test/test_free_threading/test_type.py

Lines changed: 20 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)