From: Michal Simek Date: Wed, 28 Jul 2021 10:46:39 +0000 (+0200) Subject: xilinx: zynqmp: Free allocated field for target variable X-Git-Tag: v2021.10~41^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f83cfaa7f24f83c816785e33e605e29e18d76d86;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 38c910f..2cb97f4 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();