[Python-checkins] bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460)
Serhiy Storchaka
webhook-mailer at python.org
Wed Jul 25 07:52:48 EDT 2018
https://github.com/python/cpython/commit/ee98e7bbde45fcf24d769353e29337d5ccdbaac5
commit: ee98e7bbde45fcf24d769353e29337d5ccdbaac5
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-07-25T14:52:45+03:00
summary:
bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460)
files:
M Modules/_elementtree.c
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 1500a6de270d..02781d5d892b 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);
More information about the Python-checkins
mailing list