Skip to content

Commit 16f39bd

Browse files
committed
gh-92810: Address review fixes
1 parent 0295846 commit 16f39bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_abc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ _abc__abc_subclasscheck_impl(PyObject *module, PyObject *self,
847847
_abc_data *scls_impl;
848848
int scls_is_abc = _get_optional_impl(state, scls, &scls_impl);
849849
if (scls_is_abc < 0) {
850+
Py_DECREF(scls);
850851
goto end;
851852
}
852853
if (scls_is_abc > 0) {

0 commit comments

Comments
 (0)