bpo-36030: Fix a possible segfault in PyTuple_New() (GH-15670)

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 @@
     }
 #endif
     op = tuple_alloc(size);
+    if (op == NULL) {
+        return NULL;
+    }
     for (Py_ssize_t i = 0; i < size; i++) {
         op->ob_item[i] = NULL;
     }