]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Closes #22336: attemptckalloc() with PyMem_Malloc() in _tkinter
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 11 Sep 2014 15:50:21 +0000 (17:50 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 11 Sep 2014 15:50:21 +0000 (17:50 +0200)
commitee6c3c7162dee452dc42d9a1001bf1a0a1e15f26
tree4d3622954cbe18234e2525ede2e4cf5bbede1a25
parenta1b16bab2fc389813d042fe1d0c3d4d38d1bbb9b
Closes #22336: attemptckalloc() with PyMem_Malloc() in _tkinter

The PyMem_Malloc(size) function has a well defined behaviour: if size is 0, a
pointer different than NULL is returned. PyMem_Malloc() allocations are
tracked by tracemalloc, attemptckalloc() allocations are not tracked.
Modules/_tkinter.c