commit | c3beda2f277a003deca2fd0f9b2ae8538d317087 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Sep 03 18:14:30 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Sep 03 18:14:30 1997 +0000 |
tree | a530054b21d9f483881c2cc3b2cad6533b574f11 | |
parent | d5f0ce9f288daa8882b91bd824ce2d6bc61bfef5 [diff] |
Plug small leaks: the [de]compress object itself was never freed.
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 @@ { int err; err=deflateEnd(&self->zst); /* Deallocate zstream structure */ + PyMem_DEL(self); } static void @@ -340,6 +341,7 @@ { int err; err=inflateEnd(&self->zst); /* Deallocate zstream structure */ + PyMem_DEL(self); } static char comp_compress__doc__[] =