Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-40170: Fix PyType_Ready() refleak on static type #23236

Merged
merged 1 commit into from
Nov 11, 2020
Merged

bpo-40170: Fix PyType_Ready() refleak on static type #23236

merged 1 commit into from
Nov 11, 2020

Commits on Nov 11, 2020

  1. bpo-40170: Fix PyType_Ready() refleak on static type

    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).
    vstinner committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    c15a6c3 View commit details
    Browse the repository at this point in the history