Commit ba2fa637 authored by Neal Norwitz's avatar Neal Norwitz

en_sit will be freed when en is DECREF'd. Don't double free.

parent f8d403dd
...@@ -33,7 +33,6 @@ enum_new(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -33,7 +33,6 @@ enum_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
} }
en->en_result = PyTuple_Pack(2, Py_None, Py_None); en->en_result = PyTuple_Pack(2, Py_None, Py_None);
if (en->en_result == NULL) { if (en->en_result == NULL) {
Py_DECREF(en->en_sit);
Py_DECREF(en); Py_DECREF(en);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment