]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333)
authorVictor Stinner <vstinner@redhat.com>
Tue, 20 Aug 2019 11:28:02 +0000 (12:28 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2019 11:28:02 +0000 (12:28 +0100)
commit18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0
tree28e3d495d28e40cdb7189da7297d427f9d7d095f
parentb0f4dab8735f692bcfedcf0fa9a25e238a554bab
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333)

pymalloc_alloc() now returns directly the pointer, return NULL on
memory allocation error.

allocate_from_new_pool() already uses NULL as marker for "allocation
failed".
Objects/obmalloc.c