Fix a possible segfault. Found be Neal Norvitz.

This commit is contained in:
Marc-André Lemburg 2002-05-29 13:46:29 +00:00
parent 4da6fd63bc
commit 4164439240
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}