diff --git a/Python/ast.c b/Python/ast.c index 5422e9c29b2..ecfc14cdf84 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -164,8 +164,10 @@ validate_constant(PyObject *value) if (!validate_constant(item)) { Py_DECREF(it); + Py_DECREF(item); return 0; } + Py_DECREF(item); } Py_DECREF(it);