Skip to content

Commit

Permalink
bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Jul 25, 2018
1 parent d3b1919 commit ee98e7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_elementtree.c
Expand Up @@ -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);
Expand Down

0 comments on commit ee98e7b

Please sign in to comment.