commit | c4266360fc70745d49b09f2c29cda91c1a007525 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Jul 09 00:44:43 2013 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Jul 09 00:44:43 2013 +0200 |
tree | ff5dd727f232097d2b7c87dcf9095388f3b1c49b | |
parent | 9e6b4d715c46c0fa518fd76440b59516a9f6f7ea [diff] |
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).