From 41644392407eadb07dd09a08e5d316c4edf3fcbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Wed, 29 May 2002 13:46:29 +0000 Subject: Fix a possible segfault. Found be Neal Norvitz. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e24453d..2cb97bc 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; } -- cgit v0.12