[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.89,2.90
Jeremy Hylton
python-dev@python.org
Wed, 03 Jan 2001 14:32:18 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/encodings cp037.py,1.1,1.2 cp1006.py,1.1,1.2 cp1026.py,1.1,1.2 cp1250.py,1.1,1.2 cp1251.py,1.1,1.2 cp1252.py,1.1,1.2 cp1253.py,1.1,1.2 cp1254.py,1.1,1.2 cp1255.py,1.1,1.2 cp1256.py,1.1,1.2 cp1257.py,1.1,1.2 cp1258.py,1.1,1.2 cp424.py,1.1,1.2 cp437.py,1.1,1.2 cp500.py,1.1,1.2 cp737.py,1.1,1.2 cp775.py,1.1,1.2 cp850.py,1.1,1.2 cp852.py,1.1,1.2 cp855.py,1.1,1.2 cp856.py,1.2,1.3 cp857.py,1.1,1.2 cp860.py,1.1,1.2 cp861.py,1.1,1.2 cp862.py,1.1,1.2 cp863.py,1.1,1.2 cp864.py,1.1,1.2 cp865.py,1.1,1.2 cp866.py,1.1,1.2 cp869.py,1.1,1.2 cp874.py,1.1,1.2 cp875.py,1.1,1.2 iso8859_1.py,1.1,1.2 iso8859_10.py,1.1,1.2 iso8859_13.py,1.1,1.2 iso8859_14.py,1.1,1.2 iso8859_15.py,1.1,1.2 iso8859_2.py,1.1,1.2 iso8859_3.py,1.1,1.2 iso8859_4.py,1.1,1.2 iso8859_5.py,1.1,1.2 iso8859_6.py,1.1,1.2 iso8859_7.py,1.1,1.2 iso8859_8.py,1.1,1.2 iso8859_9.py,1.1,1.2 koi8_r.py,1.1,1.2 mac_cyrillic.py,1.1,1.2 mac_greek.py,1.1,1.2 mac_iceland.py,1.1,1.2 mac_latin2.py,1.1,1.2 mac_roman.py,1.1,1.2 mac_turkish.py,1.1,1.2
- Next message: [Python-checkins] CVS: python/dist/src/Objects dictobject.c,2.71,2.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv2530
Modified Files:
listobject.c
Log Message:
fix leak
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.89
retrieving revision 2.90
diff -C2 -r2.89 -r2.90
*** listobject.c 2000/12/13 22:35:46 2.89
--- listobject.c 2001/01/03 22:32:16 2.90
***************
*** 597,603 ****
register int i;
! if (PyObject_Size(b) == 0)
/* short circuit when b is empty */
return 0;
if (self == (PyListObject*)b) {
--- 597,605 ----
register int i;
! if (PyObject_Size(b) == 0) {
/* short circuit when b is empty */
+ Py_DECREF(b);
return 0;
+ }
if (self == (PyListObject*)b) {
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/encodings cp037.py,1.1,1.2 cp1006.py,1.1,1.2 cp1026.py,1.1,1.2 cp1250.py,1.1,1.2 cp1251.py,1.1,1.2 cp1252.py,1.1,1.2 cp1253.py,1.1,1.2 cp1254.py,1.1,1.2 cp1255.py,1.1,1.2 cp1256.py,1.1,1.2 cp1257.py,1.1,1.2 cp1258.py,1.1,1.2 cp424.py,1.1,1.2 cp437.py,1.1,1.2 cp500.py,1.1,1.2 cp737.py,1.1,1.2 cp775.py,1.1,1.2 cp850.py,1.1,1.2 cp852.py,1.1,1.2 cp855.py,1.1,1.2 cp856.py,1.2,1.3 cp857.py,1.1,1.2 cp860.py,1.1,1.2 cp861.py,1.1,1.2 cp862.py,1.1,1.2 cp863.py,1.1,1.2 cp864.py,1.1,1.2 cp865.py,1.1,1.2 cp866.py,1.1,1.2 cp869.py,1.1,1.2 cp874.py,1.1,1.2 cp875.py,1.1,1.2 iso8859_1.py,1.1,1.2 iso8859_10.py,1.1,1.2 iso8859_13.py,1.1,1.2 iso8859_14.py,1.1,1.2 iso8859_15.py,1.1,1.2 iso8859_2.py,1.1,1.2 iso8859_3.py,1.1,1.2 iso8859_4.py,1.1,1.2 iso8859_5.py,1.1,1.2 iso8859_6.py,1.1,1.2 iso8859_7.py,1.1,1.2 iso8859_8.py,1.1,1.2 iso8859_9.py,1.1,1.2 koi8_r.py,1.1,1.2 mac_cyrillic.py,1.1,1.2 mac_greek.py,1.1,1.2 mac_iceland.py,1.1,1.2 mac_latin2.py,1.1,1.2 mac_roman.py,1.1,1.2 mac_turkish.py,1.1,1.2
- Next message: [Python-checkins] CVS: python/dist/src/Objects dictobject.c,2.71,2.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]