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

This commit is contained in:
Serhiy Storchaka 2018-07-25 14:52:45 +03:00 committed by GitHub
parent d3b191992e
commit ee98e7bbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);