8000 [3.12] gh-110310: Add a Per-Interpreter XID Registry for Heap Types (gh-110311) by ericsnowcurrently · Pull Request #110714 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-110310: Add a Per-Interpreter XID Registry for Heap Types (gh-110311) #110714

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

Merged
Prev Previous commit
Next Next commit
Drop an extra decref.
  • Loading branch information
ericsnowcurrently committed Oct 11, 2023
commit 49d383943afbede237475a59f663e1bb3e4d9dbc
2 changes: 1 addition & 1 deletion Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2564,7 +2564,7 @@ _xidregistry_find_type(struct _xidregistry *xidregistry, PyTypeObject *cls)
assert(PyType_Check(registered));
assert(cur->cls == (PyTypeObject *)registered);
assert(cur->cls->tp_flags & Py_TPFLAGS_HEAPTYPE);
Py_DECREF(registered);
//Py_DECREF(registered);
}
if (cur->cls == cls) {
return cur;
Expand Down
0