[PATCH] crypto: call zlib end functions on deflate exit path
authorArtem B. Bityuckiy <dedekind@infradead.org>
Sat, 16 Apr 2005 22:23:58 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:23:58 +0000 (15:23 -0700)
commit9ffb7146f0aa9c0070cda3d8701b0a89e34913d1
tree74da3bcb6c603f2681182250007d38e0c2c620a3
parentd42ce812b8a32adddeee3a692005f82f95ff15a3
[PATCH] crypto: call zlib end functions on deflate exit path

In the deflate_[compress|uncompress|pcompress] functions we call the
zlib_[in|de]flateReset function at the beginning.  This is OK.  But when we
unload the deflate module we don't call zlib_[in|de]flateEnd to free all
the zlib internal data.  It looks like a bug for me.  Please, consider the
attached patch.

Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
crypto/deflate.c