提交 f83cfaa7 编写于 作者: M Michal Simek

xilinx: zynqmp: Free allocated field for target variable

When env_set() is called there is no need to allocate memory for variable
which is already saved that's why free it.
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 ab97eb34
......@@ -735,6 +735,7 @@ int board_late_init(void)
env_targets ? env_targets : "");
env_set("boot_targets", new_targets);
free(new_targets);
reset_reason();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册