diff --git a/0049-fsck-fix-memory-leak-on-an-error-exit.patch b/0049-fsck-fix-memory-leak-on-an-error-exit.patch new file mode 100644 index 0000000000000000000000000000000000000000..3ec9bdb1a2c4c8a812da0b9028bfd0796841797a --- /dev/null +++ b/0049-fsck-fix-memory-leak-on-an-error-exit.patch @@ -0,0 +1,29 @@ +From 7b76a84fd8f75fb53849a751db27d7dfd17bd8b6 Mon Sep 17 00:00:00 2001 +From: Theodore Ts'o +Date: Tue, 2 Jul 2024 14:50:00 +0800 +Subject: [PATCH] fsck: fix memory leak on an error exit + +This reduces noise from a static analyzer. + +https://github.com/tytso/e2fsprogs/issues/160 + +Signed-off-by: Theodore Ts'o +--- + misc/fsck.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/misc/fsck.c b/misc/fsck.c +index c56d1b0..fab0188 100644 +--- a/misc/fsck.c ++++ b/misc/fsck.c +@@ -805,6 +805,7 @@ static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp) + if ((negate && !cmp->negate) || + (!negate && cmp->negate)) { + fputs(_(fs_type_syntax_error), stderr); ++ free(list); + exit(EXIT_USAGE); + } + } +-- +2.33.0 + diff --git a/e2fsprogs.spec b/e2fsprogs.spec index 6d590c0b5c95adc5e5aafeb891cad9831cc1c7c5..99586a23cab7091c70d811f70567bdfb027f96e6 100644 --- a/e2fsprogs.spec +++ b/e2fsprogs.spec @@ -1,6 +1,6 @@ Name: e2fsprogs Version: 1.46.4 -Release: 27 +Release: 28 Summary: Second extended file system management tools License: GPLv2+ and LGPLv2 and MIT URL: http://e2fsprogs.sourceforge.net/ @@ -55,6 +55,7 @@ Patch45: 0045-modify-dumpe2fs-to-report-free-block-ranges-for-bigalloc.patch Patch46: 0046-e2fsck-fix-acl-block-leak-when-process-orphan-list.patch Patch47: 0047-e2fsck-when-mutating-file-name-make-sure-its-length-.patch Patch48: 0048-reisze2fs-sanity-check-free-block-group-counts-when-.patch +Patch49: 0049-fsck-fix-memory-leak-on-an-error-exit.patch BuildRequires: gcc pkgconfig texinfo BuildRequires: fuse-devel libblkid-devel libuuid-devel @@ -195,6 +196,9 @@ exit 0 %{_mandir}/man8/* %changelog +* Tue Jul 2 2024 cenhuilin - 1.46.4-28 +- fsck: fix memory leak on an error exit + * Thu May 30 2024 zhangjian - 1.46.4-27 - backport upstream patch