diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-06-04 03:38:04 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-06-04 03:38:04 (GMT) |
commit | 3eeb17346c26bdb100e6c1c1b778b7b5f83acbba (patch) | |
tree | c89af45f4cf43b4a9095c166d6c6d4074051aa29 /Objects | |
parent | 9ea89d2a1972a527bee508c3fb8cd42a86908da1 (diff) | |
download | cpython-3eeb17346c26bdb100e6c1c1b778b7b5f83acbba.zip cpython-3eeb17346c26bdb100e6c1c1b778b7b5f83acbba.tar.gz cpython-3eeb17346c26bdb100e6c1c1b778b7b5f83acbba.tar.bz2 |
_PyObject_DebugMalloc(): The return value should add
2*sizeof(size_t) now, not 8. This probably accounts for
current disasters on the 64-bit buildbot slaves.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/obmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index a3e9bbf..0ca8f2b 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -1337,7 +1337,7 @@ _PyObject_DebugMalloc(size_t nbytes) memset(tail, FORBIDDENBYTE, SST); write_size_t(tail + SST, serialno); - return p+8; + return p + 2*SST; } /* The debug free first checks the 2*SST bytes on each end for sanity (in |