diff options
author | Guido van Rossum <guido@python.org> | 1997-09-03 18:14:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-09-03 18:14:30 (GMT) |
commit | c3beda2f277a003deca2fd0f9b2ae8538d317087 (patch) | |
tree | a530054b21d9f483881c2cc3b2cad6533b574f11 /Modules/zlibmodule.c | |
parent | d5f0ce9f288daa8882b91bd824ce2d6bc61bfef5 (diff) | |
download | cpython-c3beda2f277a003deca2fd0f9b2ae8538d317087.zip cpython-c3beda2f277a003deca2fd0f9b2ae8538d317087.tar.gz cpython-c3beda2f277a003deca2fd0f9b2ae8538d317087.tar.bz2 |
Plug small leaks: the [de]compress object itself was never freed.
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r-- | Modules/zlibmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
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__[] = |