Commit ee98e7bb authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460)

parent d3b19199
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment