Skip to content

Commit b14f331

Browse files
committed
Don't leak fields
1 parent e5c9a96 commit b14f331

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,7 @@ def visitModule(self, mod):
15031503
15041504
int status = Py_ReprEnter((PyObject *)self);
15051505
if (status != 0) {
1506+
Py_DECREF(fields);
15061507
if (status < 0) {
15071508
return NULL;
15081509
}

Python/Python-ast.c

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)