[Python-checkins] CVS: python/dist/src/Objects structseq.c,1.5,1.6

Michael Hudson mwh@users.sourceforge.net
Thu, 07 Mar 2002 07:13:43 -0800


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

Modified Files:
	structseq.c 
Log Message:
Guido pointed out that I was missing a couple decrefs.


Index: structseq.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/structseq.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** structseq.c	6 Mar 2002 17:07:49 -0000	1.5
--- structseq.c	7 Mar 2002 15:13:40 -0000	1.6
***************
*** 234,237 ****
--- 234,238 ----
  	PyObject* tup;
  	PyObject* dict;
+ 	PyObject* result;
  	long n_fields, n_visible_fields;
  	int i;
***************
*** 260,264 ****
  	}
  
! 	return Py_BuildValue("(O(OO))", self->ob_type, tup, dict);
  }
  
--- 261,270 ----
  	}
  
! 	result = Py_BuildValue("(O(OO))", self->ob_type, tup, dict);
! 
! 	Py_DECREF(tup);
! 	Py_DECREF(dict);
! 
! 	return result;
  }