diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -717,9 +717,9 @@ state->error = 1; } else { if (PySet_Add(state->set, py_name) != 0) { - Py_DECREF(py_name); state->error = 1; } + Py_DECREF(py_name); } }