mirror of https://github.com/python/cpython
also decref the right thing
This commit is contained in:
parent
4c13a4a352
commit
5e458f520c
|
@ -9140,7 +9140,7 @@ PyUnicode_Count(PyObject *str,
|
|||
return -1;
|
||||
}
|
||||
if (PyUnicode_READY(sub_obj) == -1 || PyUnicode_READY(str_obj) == -1) {
|
||||
Py_DECREF(substr);
|
||||
Py_DECREF(sub_obj);
|
||||
Py_DECREF(str_obj);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue