[Python-checkins] CVS: python/dist/src/Modules _sre.c,2.46,2.47

A.M. Kuchling python-dev@python.org
Fri, 22 Dec 2000 06:39:12 -0800


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

Modified Files:
	_sre.c 
Log Message:
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing 
    DECREF


Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.46
retrieving revision 2.47
diff -C2 -r2.46 -r2.47
*** _sre.c	2000/10/28 19:30:40	2.46
--- _sre.c	2000/12/22 14:39:10	2.47
***************
*** 1997,2000 ****
--- 1997,2001 ----
          /* FIXME: <fl> this can fail, right? */
          PyDict_SetItem(result, key, item);
+ 	Py_DECREF(item);
      }