Fix a refleak in validate_constant()

Issue #26146.
This commit is contained in:
Victor Stinner 2016-01-27 00:11:47 +01:00
parent 906d82db6d
commit 726f6902ce
1 changed files with 2 additions and 0 deletions

View File

@ -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);