From 3eeb17346c26bdb100e6c1c1b778b7b5f83acbba Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 4 Jun 2006 03:38:04 +0000 Subject: _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. --- Objects/obmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12