From 4e77fb16b799cd1ff656addbe22e10357e1bb8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 10 Jun 1999 13:44:12 -0700 Subject: [PATCH] fixed a memory leak on some platforms (NT) Rev: src/modules/Gz/zlibmod.c:1.25 --- src/modules/Gz/zlibmod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/Gz/zlibmod.c b/src/modules/Gz/zlibmod.c index 3eb8c8fd75..40d0aeece3 100644 --- a/src/modules/Gz/zlibmod.c +++ b/src/modules/Gz/zlibmod.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: zlibmod.c,v 1.24 1999/06/08 12:35:45 mirar Exp $"); +RCSID("$Id: zlibmod.c,v 1.25 1999/06/10 20:44:12 hubbe Exp $"); #include "zlib_machine.h" @@ -198,6 +198,7 @@ static void exit_gz_deflate(struct object *o) /* mt_lock(& THIS->lock); */ deflateEnd(&THIS->gz); /* mt_unlock(& THIS->lock); */ + mt_destroy( & THIS->lock ); } /*******************************************************************/ @@ -331,6 +332,7 @@ static void exit_gz_inflate(struct object *o) /* mt_lock(& THIS->lock); */ inflateEnd(& THIS->gz); /* mt_unlock(& THIS->lock); */ + mt_destroy( & THIS->lock ); } -- GitLab