summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 1500a6d..02781d5 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -3178,6 +3178,7 @@ expat_start_doctype_handler(XMLParserObject *self,
"The doctype() method of XMLParser is ignored. "
"Define doctype() method on the TreeBuilder target.",
1);
+ Py_DECREF(res);
}
Py_DECREF(doctype_name_obj);