summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2000-09-15 07:07:46 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2000-09-15 07:07:46 (GMT)
commitc58dbebf4bcc3cc2b557de0ff39e75df7532a2b2 (patch)
tree9d3bf9dd761dc0d83996609e9c7154b4843051d4 /Objects
parentff1ce0f44f0c732fdffd24facb14e8a763a2fbf3 (diff)
downloadcpython-c58dbebf4bcc3cc2b557de0ff39e75df7532a2b2.zip
cpython-c58dbebf4bcc3cc2b557de0ff39e75df7532a2b2.tar.gz
cpython-c58dbebf4bcc3cc2b557de0ff39e75df7532a2b2.tar.bz2
Correctly use realloc return value. Fixes bug #114424.
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 71e9764..63d0ca7 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -503,7 +503,7 @@ _PyTuple_Resize(PyObject **pv, int newsize, int last_is_sticky)
#ifdef WITH_CYCLE_GC
PyGC_Head *g = PyObject_AS_GC((PyObject *)v);
PyObject_GC_Fini((PyObject *)v);
- sv = (PyTupleObject *)
+ g = (PyTupleObject *)
PyObject_REALLOC((char *)g, sizeof(PyTupleObject)
+ PyGC_HEAD_SIZE
+ newsize * sizeof(PyObject *));