summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/pyexpat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index ff104f6..011db63 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -98,6 +98,7 @@ conv_atts_using_string(XML_Char **atts)
}
if (PyDict_SetItemString(attrs_obj,
(char*)*attrs_k, rv) < 0) {
+ Py_DECREF(rv);
Py_DECREF(attrs_obj);
attrs_obj = NULL;
goto finally;