lib-inflate-fix-memory-leak-in-inflate_fixed-on-inflate_codes-failure.patch removed from -mm tree
The quilt patch titled
Subject: lib/inflate: fix memory leak in inflate_fixed() on inflate_codes() failure
has been removed from the -mm tree. Its filename was
lib-inflate-fix-memory-leak-in-inflate_fixed-on-inflate_codes-failure.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Josh Law <[email protected]>
Subject: lib/inflate: fix memory leak in inflate_fixed() on inflate_codes() failure
Date: Fri, 6 Mar 2026 16:16:12 +0000
When inflate_codes() fails in inflate_fixed(), only the length list 'l' is freed, but the Huffman tables 'tl' and 'td' are leaked. Add the missing huft_free() calls on the error path.
---
lib/inflate.c | 2 ++ 1 file changed, 2 insertions(+)
lib/inflate.c renamed from lib/inflate.c~lib-inflate-fix-memory-leak-in-inflate_fixed-on-inflate_codes-failure +2 -0
@@ -811,6 +811,8 @@ DEBG("<fix");/* decompress until an end-of-block code */ if (inflate_codes (tl, td, bl, bd)) { +huft_free (tl); +huft_free (td);free (l);return 1 ; }
_
Patches currently in -mm which might be from [email protected] are
mm-damon-core-document-damos_commit_dests-failure-semantics.patch lib-maple_tree-fix-swapped-arguments-in-mas_safe_pivot-call.patch lib-idr-fix-ida_find_first_range-missing-ids-across-chunk-boundaries.patch