mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Issue #18227: "Free" function of bz2, lzma and zlib modules has no return value (void)
This commit is contained in:
parent
11ebff2757
commit
b7f1f65f1c
3 changed files with 3 additions and 3 deletions
|
|
@ -263,7 +263,7 @@ BZ2_Malloc(void* ctx, int items, int size)
|
||||||
static void
|
static void
|
||||||
BZ2_Free(void* ctx, void *ptr)
|
BZ2_Free(void* ctx, void *ptr)
|
||||||
{
|
{
|
||||||
return PyMem_RawFree(ptr);
|
PyMem_RawFree(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ PyLzma_Malloc(void *opaque, size_t items, size_t size)
|
||||||
static void
|
static void
|
||||||
PyLzma_Free(void *opaque, void *ptr)
|
PyLzma_Free(void *opaque, void *ptr)
|
||||||
{
|
{
|
||||||
return PyMem_RawFree(ptr);
|
PyMem_RawFree(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BUFSIZ < 8192
|
#if BUFSIZ < 8192
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ PyZlib_Malloc(voidpf ctx, uInt items, uInt size)
|
||||||
static void
|
static void
|
||||||
PyZlib_Free(voidpf ctx, void *ptr)
|
PyZlib_Free(voidpf ctx, void *ptr)
|
||||||
{
|
{
|
||||||
return PyMem_RawFree(ptr);
|
PyMem_RawFree(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(compress__doc__,
|
PyDoc_STRVAR(compress__doc__,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue