mirror of https://github.com/python/cpython
en_sit will be freed when en is DECREF'd. Don't double free.
This commit is contained in:
parent
f8d403dd97
commit
ba2fa637d6
|
@ -33,7 +33,6 @@ enum_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
en->en_result = PyTuple_Pack(2, Py_None, Py_None);
|
||||
if (en->en_result == NULL) {
|
||||
Py_DECREF(en->en_sit);
|
||||
Py_DECREF(en);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue