SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 59 Python

Issue #18408: Fix _PyMem_DebugRealloc()

Don't mark old extra memory dead before calling realloc(). realloc() can fail
and realloc() must not touch the original buffer on failure.

So mark old extra memory dead only on success if the new buffer did not move
(has the same address).
V
Victor Stinner committed
c4266360fc70745d49b09f2c29cda91c1a007525
Parent: 9e6b4d7