From: Theodore Ts'o Date: Thu, 25 Apr 2024 17:22:15 +0000 (-0400) Subject: fsck: fix memory leak on an error exit X-Git-Tag: v1.47.1-rc1~13 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7b76a84fd8f75fb53849a751db27d7dfd17bd8b6;p=tools%2Fe2fsprogs.git 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 negate) || (!negate && cmp->negate)) { fputs(_(fs_type_syntax_error), stderr); + free(list); exit(EXIT_USAGE); } }