From: Tim Peters Date: Sun, 4 Jun 2006 03:38:04 +0000 (+0000) Subject: _PyObject_DebugMalloc(): The return value should add X-Git-Tag: v2.5b1~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3eeb17346c26bdb100e6c1c1b778b7b5f83acbba;p=thirdparty%2FPython%2Fcpython.git _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. --- diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index a3e9bbfb5d26..0ca8f2bcaf20 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