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

This commit is contained in:
Victor Stinner 2013-07-07 17:10:34 +02:00
parent 11ebff2757
commit b7f1f65f1c
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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__,