summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-06-04 03:38:04 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-06-04 03:38:04 (GMT)
commit3eeb17346c26bdb100e6c1c1b778b7b5f83acbba (patch)
treec89af45f4cf43b4a9095c166d6c6d4074051aa29 /Objects
parent9ea89d2a1972a527bee508c3fb8cd42a86908da1 (diff)
downloadcpython-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.c2
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