From ba2fa637d64d3368e5ad9748919f0d6552c1235d Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 11 Dec 2005 20:55:10 +0000 Subject: [PATCH] en_sit will be freed when en is DECREF'd. Don't double free. --- Objects/enumobject.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Objects/enumobject.c b/Objects/enumobject.c index a9d4a5e3bef..8c3eab1692f 100644 --- a/Objects/enumobject.c +++ b/Objects/enumobject.c @@ -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; }