diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-03 11:31:31 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-03 11:31:31 (GMT) |
commit | 0bb8454ed43ef41becc0bee0c5987f2b427a7134 (patch) | |
tree | e83aac07a051628fdf5305139c0f33770d44bce9 /Modules | |
parent | afd5ce18143179b74129572d1df43f3643e35a08 (diff) | |
download | cpython-0bb8454ed43ef41becc0bee0c5987f2b427a7134.zip cpython-0bb8454ed43ef41becc0bee0c5987f2b427a7134.tar.gz cpython-0bb8454ed43ef41becc0bee0c5987f2b427a7134.tar.bz2 |
Fix the reference count errors revealed by the test suite...
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pyexpat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index c1662fc..58ffd23 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -109,6 +109,7 @@ set_error_attr(PyObject *err, char *name, int value) Py_DECREF(v); return 0; } + Py_DECREF(v); return 1; } @@ -135,6 +136,7 @@ set_error(xmlparseobject *self, enum XML_Error code) && set_error_attr(err, "lineno", lineno)) { PyErr_SetObject(ErrorObject, err); } + Py_DECREF(err); return NULL; } @@ -748,7 +750,7 @@ my_ElementDeclHandler(void *userData, flag_error(self); goto finally; } - args = Py_BuildValue("NN", string_intern(self, name), modelobj); + args = Py_BuildValue("NN", nameobj, modelobj); if (args == NULL) { Py_DECREF(modelobj); flag_error(self); |