Kaydet (Commit) 19cb1932 authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

Fix memory error treatment correctly. Going to dsu_fail causes

deallocating garbage pointers; saved_ob_item and empty_ob_item.
(Reviewed by Raymond Hettinger)
üst e807da80
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment