8000 bpo-37879: Suppress subtype_dealloc decref when base type is a C heap type by eduardo-elizondo · Pull Request #15323 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37879: Suppress subtype_dealloc decref when base type is a C heap type #15323

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
merged 11 commits into from
Sep 11, 2019
Prev Previous commit
Next Next commit
Fix leaks
  • Loading branch information
eduardo-elizondo committed Sep 10, 2019
commit d227ab3f4e748c3d26d5d1c0377a028892379584
2 changes: 1 addition & 1 deletion Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -6143,7 +6143,7 @@ heapctypesubclasswithfinalizer_finalize(PyObject *self)

m = PyState_FindModule(&_testcapimodule);
if (m == NULL) {
return;
goto cleanup_finalize;
}
oldtype = PyObject_GetAttrString(m, "HeapCTypeSubclassWithFinalizer");
newtype = PyObject_GetAttrString(m, "HeapCTypeSubclass");
Expand Down
0