From c3beda2f277a003deca2fd0f9b2ae8538d317087 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 3 Sep 1997 18:14:30 +0000 Subject: Plug small leaks: the [de]compress object itself was never freed. --- Modules/zlibmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 6f416b4..87f5794 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -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__[] = -- cgit v0.12