Commit 5e458f52 authored by Benjamin Peterson's avatar Benjamin Peterson

also decref the right thing

parent 4c13a4a3
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment