xilinx: Free memory when variable is saved in boot_targets_setup()
authorMichal Simek <michal.simek@amd.com>
Thu, 10 Apr 2025 07:38:51 +0000 (09:38 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 16 Apr 2025 11:44:44 +0000 (13:44 +0200)
commitd23555d7ae9ad20d2249af89ad4ca1856e4c3b9e
tree131a0e7d08b2b4b0135119e9260a9bad0c6e9384
parent878d9293a06453fb2f6d31cdd4482aa5fec2e4c4
xilinx: Free memory when variable is saved in boot_targets_setup()

When boot_targets variable is saved there is no reason to keep string in
malloc area that's why free it. This change is already done in ZynqMP code.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/fa10fc22193a1a23258466056b3d02f7496fccfe.1744270729.git.michal.simek@amd.com
board/amd/versal2/board.c
board/xilinx/versal/board.c