Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL

This commit is contained in:
Victor Stinner 2013-07-17 21:51:42 +02:00
parent 764a46d2ed
commit 0fae8f9083
1 changed files with 1 additions and 1 deletions

View File

@ -1845,7 +1845,7 @@ ast_for_atom(struct compiling *c, const node *n)
}
ast_error(c, n, buf);
Py_DECREF(type);
Py_DECREF(value);
Py_XDECREF(value);
Py_XDECREF(tback);
}
return NULL;