diff options
author | Michal Simek <michal.simek@xilinx.com> | 2021-07-28 12:46:39 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-08-06 09:32:02 +0200 |
commit | f83cfaa7f24f83c816785e33e605e29e18d76d86 (patch) | |
tree | e9c51bf87b945037d4031ee92ca8a8bed320d961 | |
parent | ab97eb341cb4fdbd69e33bd4a53714db95b5b63e (diff) | |
download | u-boot-f83cfaa7f24f83c816785e33e605e29e18d76d86.tar.gz |
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>
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 38c910fa5b..2cb97f42be 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -735,6 +735,7 @@ int board_late_init(void) env_targets ? env_targets : ""); env_set("boot_targets", new_targets); + free(new_targets); reset_reason(); |