mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-05 06:43:31 +03:00
Fix zlib leak on FreeBSD
zlib_inflateEnd was accidentally a wrapper for inflateInit instead of inflateEnd, and hilarity ensues. Fix the typo so we free memory instead of allocating more. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10225 Closes #10252
This commit is contained in:
parent
47c9299fcc
commit
a8085184d6
@ -102,7 +102,7 @@ zlib_inflate(z_stream *stream, int finish)
|
|||||||
static int
|
static int
|
||||||
zlib_inflateEnd(z_stream *stream)
|
zlib_inflateEnd(z_stream *stream)
|
||||||
{
|
{
|
||||||
return (inflateInit(stream));
|
return (inflateEnd(stream));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user