bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460) · python/cpython@ee98e7b

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit ee98e7b

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

1 parent d3b1919 commit ee98e7b

File tree

1 file changed

+

1

-

0

lines changed

1 file changed

+

1

-

0

lines changed

Lines changed: 1 addition & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -3178,6 +3178,7 @@ expat_start_doctype_handler(XMLParserObject *self,

31783178

"The doctype() method of XMLParser is ignored. "

31793179

"Define doctype() method on the TreeBuilder target.",

31803180

1);

3181+

Py_DECREF(res);

31813182

}

31823183
31833184

Py_DECREF(doctype_name_obj);

0 commit comments

Comments

 (0)