diff options
author | Georg Brandl <georg@python.org> | 2006-03-17 19:03:25 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-03-17 19:03:25 (GMT) |
commit | 5c170fd4a9d2bc2e475d718cbbce526cad4a3eaa (patch) | |
tree | 26fd8d333d8b7fdde9e4b4bb2c39082d9a3d29d0 /Objects/tupleobject.c | |
parent | a5a0704942fcd422f817c9b34e77a2346ddcf102 (diff) | |
download | cpython-5c170fd4a9d2bc2e475d718cbbce526cad4a3eaa.zip cpython-5c170fd4a9d2bc2e475d718cbbce526cad4a3eaa.tar.gz cpython-5c170fd4a9d2bc2e475d718cbbce526cad4a3eaa.tar.bz2 |
Fix some missing checks after PyTuple_New, PyList_New, PyDict_New
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 384b355..c16c71a 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -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; |