commit | ba2958ed40d284228836735cbed4a155190e0998 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Nov 11 14:27:32 2020 +0100 |
committer | GitHub <noreply@github.com> | Wed Nov 11 14:27:32 2020 +0100 |
tree | 8266560eea9bd2d980e9f19196703d0dfcfb8513 | |
parent | f9a8386e44a695551a1e54e709969e90e9b96bc4 [diff] |
bpo-40170: Fix PyType_Ready() refleak on static type (GH-23236) bpo-1635741, bpo-40170: When called on a static type with NULL tp_base, PyType_Ready() no longer increments the reference count of the PyBaseObject_Type ("object). PyTypeObject.tp_base is a strong reference on a heap type, but it is borrowed reference on a static type. Fix 99 reference leaks at Python exit (showrefcount 18623 => 18524).