From b7f1f65f1c1c0b80e613f5fbf3a4ed3e3e2c72f9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 7 Jul 2013 17:10:34 +0200 Subject: 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 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__, -- cgit v0.12