diff Objects/unicodeobject.c @ 25895:509bb0b6dfa3 legacy-trunk

Fix for bug #626172: crash using unicode latin1 single char Python 2.2.3 candidate.
author Marc-André Lemburg <mal@egenix.com>
date Wed, 23 Oct 2002 09:02:46 +0000
parents f532e9b69551
children 63a08639dae2
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed Oct 23 04:48:08 2002 +0000
+++ b/Objects/unicodeobject.c	Wed Oct 23 09:02:46 2002 +0000
@@ -4485,10 +4485,8 @@
 	goto onError;
     }
     u = (PyUnicodeObject *)PyUnicode_FromObject(container);
-    if (u == NULL) {
-	Py_DECREF(v);
+    if (u == NULL)
 	goto onError;
-    }
 
     size = PyUnicode_GET_SIZE(v);
     rhs = PyUnicode_AS_UNICODE(v);