[Python-checkins] python/dist/src/Python symtable.c, 2.10.8.24, 2.10.8.25

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Tue Apr 13 11:03:37 EDT 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17774/Python

Modified Files:
      Tag: ast-branch
	symtable.c 
Log Message:
Missing DECREFs.


Index: symtable.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/symtable.c,v
retrieving revision 2.10.8.24
retrieving revision 2.10.8.25
diff -C2 -d -r2.10.8.24 -r2.10.8.25
*** symtable.c	8 Apr 2004 18:00:46 -0000	2.10.8.24
--- symtable.c	13 Apr 2004 15:03:34 -0000	2.10.8.25
***************
*** 604,607 ****
--- 604,608 ----
  		st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, 
  								end);
+ 		Py_INCREF(st->st_cur);
  		if (PySequence_DelItem(st->st_stack, end) < 0)
  			return 0;
***************
*** 622,625 ****
--- 623,627 ----
  			return 0;
  		}
+ 		Py_DECREF(st->st_cur);
  	}
  	st->st_cur = PySTEntry_New(st, name, block, ast, lineno);




More information about the Python-checkins mailing list