8000 GH-90699: fix refleak in `_testcapimodule.c` (gh-99236) · python/cpython@a751bf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit a751bf5

Browse files
GH-90699: fix refleak in _testcapimodule.c (gh-99236)
1 parent b9dedfe commit a751bf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_testcapimodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3375,6 +3375,7 @@ slot_tp_del(PyObject *self)
33753375
}
33763376
/* Execute __del__ method, if any. */
33773377
del = _PyType_Lookup(Py_TYPE(self), tp_del);
3378+
Py_DECREF(tp_del);
33783379
if (del != NULL) {
33793380
res = PyObject_CallOneArg(del, self);
33803381
if (res == NULL)

0 commit comments

Comments
 (0)
0