diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-03-02 08:43:19 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-03-02 08:43:19 +0000 |
commit | 4be596e5e9f838c55e390f4184e94e77f1d3b975 (patch) | |
tree | d3c04bd1ba7fe6c43ad119ef42b8be216d3a3129 /Python/pythonrun.c | |
parent | c739cbc13ccf7c315266596db58afa2c4dc61204 (diff) | |
download | cpython-4be596e5e9f838c55e390f4184e94e77f1d3b975.tar.gz |
Whether platform malloc(0) returns NULL has nothing to do with whether
platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
be correctly undefined yet realloc(p, 0) can return NULL anyway.
Prevent realloc(p, 0) doing free(p) and returning NULL via a different
hack. Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
entirely.
Bugfix candidate.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions