From 19cb193244a9ac524fa8cc9d1074c32322c6604a Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Wed, 10 Dec 2003 07:31:08 +0000 Subject: Fix memory error treatment correctly. Going to dsu_fail causes deallocating garbage pointers; saved_ob_item and empty_ob_item. (Reviewed by Raymond Hettinger) --- Objects/listobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/listobject.c b/Objects/listobject.c index ce3ac6d..7d5c8b4 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1866,7 +1866,7 @@ listsort(PyListObject *self, PyObject *args, PyObject *kwds) if (compare != NULL && keyfunc != NULL) { compare = build_cmpwrapper(compare); if (compare == NULL) - goto dsu_fail; + return NULL; } else Py_XINCREF(compare); -- cgit v0.12