]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport gvanrossum's patch:
authorAnthony Baxter <anthonybaxter@gmail.com>
Fri, 26 Apr 2002 06:31:22 +0000 (06:31 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Fri, 26 Apr 2002 06:31:22 +0000 (06:31 +0000)
commitebe9421770909e823ddea32d6e58365b68bf1856
tree9308446d71e1762e4e8038b3471ac4a9d027ecb2
parentd1851c9310a33a5f442a91379cb2338f9755ae30
backport gvanrossum's patch:

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.

(trivial change in backport: "freefunc" -> "destructor")

Original patch(es):
python/dist/src/Objects/intobject.c:2.82
Objects/intobject.c