mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
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: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
ab97eb341c
commit
f83cfaa7f2
1 changed files with 1 additions and 0 deletions
|
@ -735,6 +735,7 @@ int board_late_init(void)
|
|||
env_targets ? env_targets : "");
|
||||
|
||||
env_set("boot_targets", new_targets);
|
||||
free(new_targets);
|
||||
|
||||
reset_reason();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue