]> granicus.if.org Git - python/commitdiff
en_sit will be freed when en is DECREF'd. Don't double free.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 11 Dec 2005 20:55:10 +0000 (20:55 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 11 Dec 2005 20:55:10 +0000 (20:55 +0000)
Objects/enumobject.c

index a9d4a5e3bef31d8a0a74bfa613e5c519b34d129a..8c3eab1692f01f23ce33fc6d038940e73296609f 100644 (file)
@@ -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;
        }