From b7f1f65f1c1c0b80e613f5fbf3a4ed3e3e2c72f9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 7 Jul 2013 17:10:34 +0200 Subject: [PATCH] Issue #18227: "Free" function of bz2, lzma and zlib modules has no return value (void) --- Modules/_bz2module.c | 2 +- Modules/_lzmamodule.c | 2 +- Modules/zlibmodule.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_bz2module.c b/Modules/_bz2module.c index a67aec505bf..abc4d5d732b 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 711604de00c..5d610bf3e4b 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 2e5f4735740..f21184a78fd 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__,