Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fae8f9

Browse files
committed
Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL
1 parent 764a46d commit 0fae8f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ ast_for_atom(struct compiling *c, const node *n)
18451845
}
18461846
ast_error(c, n, buf);
18471847
Py_DECREF(type);
1848-
Py_DECREF(value);
1848+
Py_XDECREF(value);
18491849
Py_XDECREF(tback);
18501850
}
18511851
return NULL;

0 commit comments

Comments
 (0)