]> granicus.if.org Git - python/commitdiff
Plug small leaks: the [de]compress object itself was never freed.
authorGuido van Rossum <guido@python.org>
Wed, 3 Sep 1997 18:14:30 +0000 (18:14 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Sep 1997 18:14:30 +0000 (18:14 +0000)
Modules/zlibmodule.c

index 6f416b4b2a9c9a5f748481b9f8904d55f41ac264..87f5794a86bece28148318b7f92e82e5b21da8ec 100644 (file)
@@ -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__[] =