diff options
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 3419baa..a72257f 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -146,6 +146,9 @@ PyTuple_New(Py_ssize_t size) } #endif op = tuple_alloc(size); + if (op == NULL) { + return NULL; + } for (Py_ssize_t i = 0; i < size; i++) { op->ob_item[i] = NULL; } |