]> 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)
commitbb3c4658de4c2f2aa5402bdd22b414e9e27f92bd
tree90c8adbc1fa5d018bf2a99aebb4ad941856c22d8
parent84460caa7ed4a76625f52598063c8203f11742d9
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