diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-11 20:55:10 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-11 20:55:10 (GMT) |
commit | ba2fa637d64d3368e5ad9748919f0d6552c1235d (patch) | |
tree | 303ff5132fea2894073d3f3985ff1e56118c7d77 /Objects/enumobject.c | |
parent | f8d403dd972a354fadc939d54dc0a1c45ffda327 (diff) | |
download | cpython-ba2fa637d64d3368e5ad9748919f0d6552c1235d.zip cpython-ba2fa637d64d3368e5ad9748919f0d6552c1235d.tar.gz cpython-ba2fa637d64d3368e5ad9748919f0d6552c1235d.tar.bz2 |
en_sit will be freed when en is DECREF'd. Don't double free.
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r-- | Objects/enumobject.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c index a9d4a5e..8c3eab1 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; } |