Plug small leaks: the [de]compress object itself was never freed.
This commit is contained in:
parent
d5f0ce9f28
commit
c3beda2f27
@ -332,6 +332,7 @@ Comp_dealloc(self)
|
|||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
err=deflateEnd(&self->zst); /* Deallocate zstream structure */
|
err=deflateEnd(&self->zst); /* Deallocate zstream structure */
|
||||||
|
PyMem_DEL(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -340,6 +341,7 @@ Decomp_dealloc(self)
|
|||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
err=inflateEnd(&self->zst); /* Deallocate zstream structure */
|
err=inflateEnd(&self->zst); /* Deallocate zstream structure */
|
||||||
|
PyMem_DEL(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char comp_compress__doc__[] =
|
static char comp_compress__doc__[] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user