* src/gzip/ftgzip.c (ft_gzip_file_done): fixed memory leak, the ZLib stream was not properly finalized
diff --git a/ChangeLog b/ChangeLog
index 2bf5efb..8c2c416 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-28 Pixel <pixel@mandrakesoft.com>
+
+ * src/gzip/ftgzip.c (ft_gzip_file_done): fixed memory leak, the ZLib
+ stream was not properly finalized
+
2003-02-25 Anthony Fok <anthony@thizlinux.com>
* src/cache/ftccmap.c: the cmap cache now supports UCS-4 charmaps
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c
index 32c938c..45f934b 100644
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -276,6 +276,8 @@
{
z_stream* zstream = &zip->zstream;
+ inflateEnd( zstream );
+
/* clear the rest */
zstream->zalloc = NULL;
zstream->zfree = NULL;