Commit b7f1f65f authored by Victor Stinner's avatar Victor Stinner

Issue #18227: "Free" function of bz2, lzma and zlib modules has no return value (void)

parent 11ebff27
......@@ -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
......
......@@ -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
......
......@@ -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__,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment