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 vstinner
Recipients David.Edelsohn, serhiy.storchaka, vstinner
Date 2014-09-04.15:46:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409845570.99.0.729089959618.issue22336@psf.upfronthosting.co.za>
In-reply-to
Content
The PyMem_Malloc(size) function has a well defined behaviour: if size is 0, a pointer different than NULL is returned. It looks like ckalloc(size) returns NULL if the size is NULL: see issue #21951 (bug on AIX).

Moreover, memory allocated by ckalloc() is not traced by the new tracemalloc module!

Attached patch replaces calls to ckalloc() and ckfree() with PyMem_Malloc() and PyMem_Free(). It may fix the issue #21951 on AIX.

There is still a call to ckfree() in Tkapp_SplitList(). This memory block is allocated internally by Tcl, not directly by _tkinter.c.
History
Date User Action Args
2014-09-04 15:46:11vstinnersetrecipients: + vstinner, serhiy.storchaka, David.Edelsohn
2014-09-04 15:46:10vstinnersetmessageid: <1409845570.99.0.729089959618.issue22336@psf.upfronthosting.co.za>
2014-09-04 15:46:10vstinnerlinkissue22336 messages
2014-09-04 15:46:10vstinnercreate