Skip to content

Commit

Permalink
GH-90699: fix refleak in _testcapimodule.c (gh-99236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Nov 8, 2022
1 parent b9dedfe commit a751bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3375,6 +3375,7 @@ slot_tp_del(PyObject *self)
}
/* Execute __del__ method, if any. */
del = _PyType_Lookup(Py_TYPE(self), tp_del);
Py_DECREF(tp_del);
if (del != NULL) {
res = PyObject_CallOneArg(del, self);
if (res == NULL)
Expand Down

0 comments on commit a751bf5

Please sign in to comment.