• Victor Stinner's avatar
    Issue #18408: Fix _PyMem_DebugRealloc() · c4266360
    Victor Stinner authored
    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).
    c4266360
obmalloc.c 74.3 KB