A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2001-January/014722.html below:

[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.89,2.90

[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.89,2.90Jeremy Hylton python-dev@python.org
Wed, 03 Jan 2001 14:32:18 -0800
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) {




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4