mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Correctly use realloc return value. Fixes bug #114424.
This commit is contained in:
parent
ff1ce0f44f
commit
c58dbebf4b
1 changed files with 1 additions and 1 deletions
|
@ -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 *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue