]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343)
authorVictor Stinner <vstinner@redhat.com>
Tue, 20 Aug 2019 14:29:08 +0000 (15:29 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2019 14:29:08 +0000 (15:29 +0100)
commitc9a484a1e76384680b90454018389465760dbeae
tree155e8ac207c3e6303e003788a92c98ba809694a2
parent02c1457a036c2af3e91beb952afdb66d9c806435
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343)

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".

(cherry picked from commit 18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0)
(cherry picked from commit 30e5aff5fb0e3841107ddd4539a1f5b8521c80fb)
Objects/obmalloc.c