]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 7 Jul 2013 14:25:15 +0000 (16:25 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 7 Jul 2013 14:25:15 +0000 (16:25 +0200)
commit1a7425f67a0d141483d89ca80ca01e3cb7f6be92
treec5c3db81a3f0b754d3c7d2cfafd8609cba58142a
parent51fa458d0a8fa6e9f583fc5a1c4164080093e763
Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization

* Replace malloc() with PyMem_RawMalloc()
* Replace PyMem_Malloc() with PyMem_RawMalloc() where the GIL is not held.
* _Py_char2wchar() now returns a buffer allocated by PyMem_RawMalloc(), instead
  of PyMem_Malloc()
Modules/getpath.c
Modules/main.c
Modules/python.c
Objects/unicodeobject.c
PC/getpathp.c
Python/fileutils.c
Python/pystate.c
Python/thread.c