Issue #26146.
@ -164,8 +164,10 @@ validate_constant(PyObject *value)
if (!validate_constant(item)) {
Py_DECREF(it);
Py_DECREF(item);
return 0;
}