Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bpo-40566: Update
  • Loading branch information
corona10 committed May 8, 2020
commit b439a7311bf8b65d596630d7c5a065e4c8e11a37
10 changes: 8 additions & 2 deletions Modules/_abc.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,14 @@ static PyObject *
abc_data_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
_abc_data *self = (_abc_data *) type->tp_alloc(type, 0);
_abcmodule_state *state = PyType_GetModuleState(type);
if (self == NULL || state == NULL) {
_abcmodule_state *state = NULL;
if (self == NULL) {
return NULL;
}

state = PyType_GetModuleState(type);
if (state == NULL) {
Py_DECREF(self);
return NULL;
Comment thread
corona10 marked this conversation as resolved.
}

Expand Down