Fix some missing checks after PyTuple_New, PyList_New, PyDict_New

This commit is contained in:
Georg Brandl 2006-03-17 19:03:25 +00:00
parent a5a0704942
commit 5c170fd4a9
7 changed files with 27 additions and 7 deletions

View file

@ -615,6 +615,7 @@ tuplesubscript(PyTupleObject* self, PyObject* item)
}
else {
result = PyTuple_New(slicelength);
if (!result) return NULL;
src = self->ob_item;
dest = ((PyTupleObject *)result)->ob_item;