]> granicus.if.org Git - python/commit
SF bug 542181: Realloc behavior
authorTim Peters <tim.peters@gmail.com>
Thu, 11 Apr 2002 06:36:45 +0000 (06:36 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 11 Apr 2002 06:36:45 +0000 (06:36 +0000)
commit52aefc8a7b9e9ebda6c1b98a831a273e0b07bf96
tree464e320ea0de3e2604b99ddc6fcaa8e965ce3124
parent362ed3451e1f95bcc327f4ed0f484d37363bfe5f
SF bug 542181:  Realloc behavior
The bug report pointed out a bogosity in the comment block explaining
thread safety for arena management.  Repaired that comment, repaired a
couple others while I was at it, and added an assert.

_PyMalloc_DebugRealloc:  If this needed to get more memory, but couldn't,
it erroneously freed the original memory.  Repaired that.

This is for 2.3 only (unless we decide to backport the new pymalloc).
Objects/obmalloc.c