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;
|
||||
err=deflateEnd(&self->zst); /* Deallocate zstream structure */
|
||||
PyMem_DEL(self);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -340,6 +341,7 @@ Decomp_dealloc(self)
|
|||
{
|
||||
int err;
|
||||
err=inflateEnd(&self->zst); /* Deallocate zstream structure */
|
||||
PyMem_DEL(self);
|
||||
}
|
||||
|
||||
static char comp_compress__doc__[] =
|
||||
|
|
Loading…
Reference in New Issue