diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e24453d17d..2cb97bcf09 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; } |