mirror of https://github.com/python/cpython
bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460)
This commit is contained in:
parent
d3b191992e
commit
ee98e7bbde
|
@ -3178,6 +3178,7 @@ expat_start_doctype_handler(XMLParserObject *self,
|
||||||
"The doctype() method of XMLParser is ignored. "
|
"The doctype() method of XMLParser is ignored. "
|
||||||
"Define doctype() method on the TreeBuilder target.",
|
"Define doctype() method on the TreeBuilder target.",
|
||||||
1);
|
1);
|
||||||
|
Py_DECREF(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_DECREF(doctype_name_obj);
|
Py_DECREF(doctype_name_obj);
|
||||||
|
|
Loading…
Reference in New Issue