[Python-checkins] python/dist/src/Objects abstract.c,2.113,2.113.2.1

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 31 Dec 2002 11:49:12 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv26675

Modified Files:
      Tag: r23a1-branch
	abstract.c 
Log Message:
Plug the leak that Tim just reported.


Index: abstract.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/abstract.c,v
retrieving revision 2.113
retrieving revision 2.113.2.1
diff -C2 -d -r2.113 -r2.113.2.1
*** abstract.c	30 Dec 2002 20:18:15 -0000	2.113
--- abstract.c	31 Dec 2002 19:49:08 -0000	2.113.2.1
***************
*** 673,676 ****
--- 673,677 ----
  		PySequenceMethods *mv = v->ob_type->tp_as_sequence;
  		PySequenceMethods *mw = w->ob_type->tp_as_sequence;
+ 		Py_DECREF(result);
  		if  (mv && mv->sq_repeat) {
  			return sequence_repeat(mv->sq_repeat, v, w);