Kaydet (Commit) c3beda2f authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst d5f0ce9f
......@@ -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__[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment