commit | f414fc4004fde1118f15efe73f93e2d12d91d82c | [log] [tgz] |
---|---|---|
author | Armin Rigo <arigo@tunes.org> | Thu Jul 29 10:56:55 2004 +0000 |
committer | Armin Rigo <arigo@tunes.org> | Thu Jul 29 10:56:55 2004 +0000 |
tree | daee59d88e8e60cc0d2741cc5dac91c65010eb2c | |
parent | e12f71586ac4d3387fa635dd6617b4f8ebed083a [diff] |
Minor memory leak.
diff --git a/Objects/listobject.c b/Objects/listobject.c index e9f37b3..ab8cc1f 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c
@@ -536,6 +536,7 @@ p = recycle = PyMem_NEW(PyObject *, (ihigh-ilow)); if (recycle == NULL) { PyErr_NoMemory(); + Py_XDECREF(v_as_SF); return -1; } } @@ -556,6 +557,7 @@ if (list_resize(a, s+d) == -1) { if (recycle != NULL) PyMem_DEL(recycle); + Py_XDECREF(v_as_SF); return -1; } item = a->ob_item;