[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.64,2.65
Guido van Rossum
python-dev@python.org
Tue, 3 Oct 2000 11:09:07 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5377
Modified Files:
unicodeobject.c
Log Message:
In _PyUnicode_Fini(), decref unicode_empty before tearng down the free
list. Discovered by Barry, fix approved by MAL.
Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.64
retrieving revision 2.65
diff -C2 -r2.64 -r2.65
*** unicodeobject.c 2000/09/26 05:46:01 2.64
--- unicodeobject.c 2000/10/03 18:09:04 2.65
***************
*** 5226,5229 ****
--- 5226,5231 ----
PyUnicodeObject *u = unicode_freelist;
+ Py_XDECREF(unicode_empty);
+ unicode_empty = NULL;
while (u != NULL) {
PyUnicodeObject *v = u;
***************
*** 5236,5240 ****
unicode_freelist = NULL;
unicode_freelist_size = 0;
- Py_XDECREF(unicode_empty);
- unicode_empty = NULL;
}
--- 5238,5240 ----