diff options
author | Ryan Moeller <[email protected]> | 2020-04-28 12:14:30 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-28 09:14:30 -0700 |
commit | a8085184d6483d9d621c0c837718630af9b776f3 (patch) | |
tree | f2c8181d16c5e96f0e1635afdc51c128b08bdf1a /module/os/freebsd | |
parent | 47c9299fcc9e5fb91d0b1636bfacc03bd3e98439 (diff) |
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 <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10225
Closes #10252
Diffstat (limited to 'module/os/freebsd')
-rw-r--r-- | module/os/freebsd/spl/spl_zlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/freebsd/spl/spl_zlib.c b/module/os/freebsd/spl/spl_zlib.c index 7549483d8..4d53f42d3 100644 --- a/module/os/freebsd/spl/spl_zlib.c +++ b/module/os/freebsd/spl/spl_zlib.c @@ -102,7 +102,7 @@ zlib_inflate(z_stream *stream, int finish) static int zlib_inflateEnd(z_stream *stream) { - return (inflateInit(stream)); + return (inflateEnd(stream)); } /* |