Commit cb4fc894 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Fix a possible segfault. Found be Neal Norvitz.

parent 7d3c3f43
......@@ -2890,7 +2890,7 @@ int PyUnicode_Find(PyObject *str,
return -2;
substr = PyUnicode_FromObject(substr);
if (substr == NULL) {
Py_DECREF(substr);
Py_DECREF(str);
return -2;
}
......
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