[Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.33,2.34
Tim Peters
tim_one@users.sourceforge.net
Sun, 21 Jan 2001 19:20:57 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv30307/python/dist/src/Modules
Modified Files:
pyexpat.c
Log Message:
Fixed teensy memory leak, but doesn't help test_sax on Windows.
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.33
retrieving revision 2.34
diff -C2 -r2.33 -r2.34
*** pyexpat.c 2001/01/21 10:22:12 2.33
--- pyexpat.c 2001/01/22 03:20:55 2.34
***************
*** 99,102 ****
--- 99,103 ----
if (PyDict_SetItemString(attrs_obj,
(char*)*attrs_k, rv) < 0) {
+ Py_DECREF(rv);
Py_DECREF(attrs_obj);
attrs_obj = NULL;