This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients amaury.forgeotdarc, loewis, pitrou, skrah
Date 2012-03-15.12:56:26
SpamBayes Score 6.2067425e-05
Marked as misclassified No
Message-id <20120315125625.GA17512@sleipnir.bytereef.org>
In-reply-to <1331721078.12.0.886538672955.issue11826@psf.upfronthosting.co.za>
Content
Antoine Pitrou <report@bugs.python.org> wrote:
> Well, if it doesn't crash, it's probably ok ;)
> Perhaps check modstate->atexit_callbacks for non-NULL?
> Or do we trust free() to do the right thing?

I was initially surprised by this, but the docs state that it's safe:

http://docs.python.org/dev/c-api/memory.html?highlight=pymem_free#PyMem_Free

The I searched a bit and it appears that free() crashing on NULL is
a pre-ANSI thing.
History
Date User Action Args
2012-03-15 12:56:27skrahsetrecipients: + skrah, loewis, amaury.forgeotdarc, pitrou
2012-03-15 12:56:26skrahlinkissue11826 messages
2012-03-15 12:56:26skrahcreate