]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bootconfig: Fix resource leak in apply_xbc()
authorYunfeng Ye <yeyunfeng@huawei.com>
Thu, 7 May 2020 09:23:36 +0000 (17:23 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 7 May 2020 18:18:27 +0000 (14:18 -0400)
commit8842604446d1f005abcbf8c63c12eabdb5695094
tree90c8adbc1fa5d018bf2a99aebb4ad941856c22d8
parent192b7993b3ff92b62b687e940e5e88fa0218d764
tools/bootconfig: Fix resource leak in apply_xbc()

Fix the @data and @fd allocations that are leaked in the error path of
apply_xbc().

Link: http://lkml.kernel.org/r/583a49c9-c27a-931d-e6c2-6f63a4b18bea@huawei.com
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/main.c