]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/bootconfig: Fix buf leaks in apply_xbc
authorHongtao Lee <lihongtao@kylinos.cn>
Wed, 20 May 2026 03:01:26 +0000 (11:01 +0800)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Thu, 21 May 2026 02:42:27 +0000 (11:42 +0900)
commitf42d01aadcedd7bbf4f9a466cabe25c1781dedad
tree5e6a127c2b57f0bb50ae80e0522b6b5bb72a6281
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
tools/bootconfig: Fix buf leaks in apply_xbc

If data calloc failed, free the buf before return.

Link: https://lore.kernel.org/all/20260520030126.147782-1-lihongtao@kylinos.cn/
Fixes: 950313ebf79c ("tools: bootconfig: Add bootconfig command")
Signed-off-by: Hongtao Lee <lihongtao@kylinos.cn>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
tools/bootconfig/main.c