Fredrik Lundh
|
94
|
 |
|
12-17-2005 03:25 AM ET (US)
|
|
Edited by author 12-23-2005 08:37 AM
(update: this bug is fixed in cElementTree 1.0.4)
Chris: this looks like a refcount bug in the default entity handler. Here's a patch:
=== cElementTree.c ================================================================== --- cElementTree.c (revision 1128) +++ cElementTree.c (local) @@ -1953,7 +1953,6 @@ res = PyObject_CallFunction(self->handle_data, "O", value); else res = NULL; - Py_DECREF(value); Py_XDECREF(res); } else { PyErr_Format(
thanks! /F
|