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

This commit is contained in:
Neal Norwitz 2005-12-11 20:55:10 +00:00
parent f8d403dd97
commit ba2fa637d6
1 changed files with 0 additions and 1 deletions

View File

@ -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;
} }