diff Objects/unicodeobject.c @ 23562:eaca627f2a54 legacy-trunk

Fix a possible segfault. Found be Neal Norvitz.
author Marc-André Lemburg <mal@egenix.com>
date Wed, 29 May 2002 13:46:29 +0000
parents c5e8f89fd358
children 245224d1b8c9
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed May 29 11:33:13 2002 +0000
+++ b/Objects/unicodeobject.c	Wed May 29 13:46:29 2002 +0000
@@ -2890,7 +2890,7 @@
 	return -2;
     substr = PyUnicode_FromObject(substr);
     if (substr == NULL) {
-	Py_DECREF(substr);
+	Py_DECREF(str);
 	return -2;
     }