Skip to content

Commit

Permalink
en_sit will be freed when en is DECREF'd. Don't double free.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnorwitz committed Dec 11, 2005
1 parent f8d403d commit ba2fa63
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Objects/enumobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ba2fa63

Please sign in to comment.