summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/tupleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 9bc1fe7..2286b01 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -79,7 +79,7 @@ PyTuple_New(size)
#endif
{
op = (PyTupleObject *) malloc(
- sizeof(PyTupleObject) + size * sizeof(PyObject *));
+ sizeof(PyTupleObject) + (size-1) * sizeof(PyObject *));
if (op == NULL)
return PyErr_NoMemory();