[Python-checkins] python/dist/src/Objects unicodeobject.c,2.150,2.151
lemburg@users.sourceforge.net
lemburg@users.sourceforge.net
Wed, 29 May 2002 06:46:31 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv23817/Objects
Modified Files:
unicodeobject.c
Log Message:
Fix a possible segfault. Found be Neal Norvitz.
Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.150
retrieving revision 2.151
diff -C2 -d -r2.150 -r2.151
*** unicodeobject.c 29 May 2002 11:33:13 -0000 2.150
--- unicodeobject.c 29 May 2002 13:46:29 -0000 2.151
***************
*** 2891,2895 ****
substr = PyUnicode_FromObject(substr);
if (substr == NULL) {
! Py_DECREF(substr);
return -2;
}
--- 2891,2895 ----
substr = PyUnicode_FromObject(substr);
if (substr == NULL) {
! Py_DECREF(str);
return -2;
}