Plug small leaks: the [de]compress object itself was never freed.

This commit is contained in:
Guido van Rossum 1997-09-03 18:14:30 +00:00
parent d5f0ce9f28
commit c3beda2f27
1 changed files with 2 additions and 0 deletions

View File

@ -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__[] =