summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 5422e9c..ecfc14c 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);