diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 15:10:34 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 15:10:34 (GMT) |
commit | b7f1f65f1c1c0b80e613f5fbf3a4ed3e3e2c72f9 (patch) | |
tree | 1537dc1610792fad54296f333f32d3aee2b873d3 | |
parent | 11ebff2757517f6edf8c4b35d6c77b7052295acb (diff) | |
download | cpython-b7f1f65f1c1c0b80e613f5fbf3a4ed3e3e2c72f9.zip cpython-b7f1f65f1c1c0b80e613f5fbf3a4ed3e3e2c72f9.tar.gz cpython-b7f1f65f1c1c0b80e613f5fbf3a4ed3e3e2c72f9.tar.bz2 |
Issue #18227: "Free" function of bz2, lzma and zlib modules has no return value (void)
-rw-r--r-- | Modules/_bz2module.c | 2 | ||||
-rw-r--r-- | Modules/_lzmamodule.c | 2 | ||||
-rw-r--r-- | Modules/zlibmodule.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_bz2module.c b/Modules/_bz2module.c index a67aec5..abc4d5d 100644 --- a/Modules/_bz2module.c +++ b/Modules/_bz2module.c @@ -263,7 +263,7 @@ BZ2_Malloc(void* ctx, int items, int size) static void BZ2_Free(void* ctx, void *ptr) { - return PyMem_RawFree(ptr); + PyMem_RawFree(ptr); } static int diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c index 711604d..5d610bf 100644 --- a/Modules/_lzmamodule.c +++ b/Modules/_lzmamodule.c @@ -132,7 +132,7 @@ PyLzma_Malloc(void *opaque, size_t items, size_t size) static void PyLzma_Free(void *opaque, void *ptr) { - return PyMem_RawFree(ptr); + PyMem_RawFree(ptr); } #if BUFSIZ < 8192 diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 2e5f473..f21184a 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -149,7 +149,7 @@ PyZlib_Malloc(voidpf ctx, uInt items, uInt size) static void PyZlib_Free(voidpf ctx, void *ptr) { - return PyMem_RawFree(ptr); + PyMem_RawFree(ptr); } PyDoc_STRVAR(compress__doc__, |