From: Guido van Rossum Date: Wed, 3 Sep 1997 18:14:30 +0000 (+0000) Subject: Plug small leaks: the [de]compress object itself was never freed. X-Git-Tag: v1.5a4~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3beda2f277a003deca2fd0f9b2ae8538d317087;p=python Plug small leaks: the [de]compress object itself was never freed. --- diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 6f416b4b2a..87f5794a86 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__[] =