]> granicus.if.org Git - python/commit
Make sure that tp_free frees the int the same way as tp_dealloc would.
authorGuido van Rossum <guido@python.org>
Fri, 26 Apr 2002 00:53:34 +0000 (00:53 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 26 Apr 2002 00:53:34 +0000 (00:53 +0000)
commit93646981011b0795329888bf7d2d10097e899432
tree869df4116ed907ed35df45bc8bf399fd7ba55588
parentcf22c826a68ccf33fa3f093f7dc9da956d69127e
Make sure that tp_free frees the int the same way as tp_dealloc would.
This fixes the problem that Barry reported on python-dev:
   >>> 23000 .__class__ = bool
crashes in the deallocator.  This was because int inherited tp_free
from object, which uses the default allocator.

2.2. Bugfix candidate.
Objects/intobject.c