aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Belin <nbelin@baylibre.com>2024-12-17 14:29:09 +0100
committerMattijs Korpershoek <mkorpershoek@baylibre.com>2024-12-18 14:04:23 +0100
commitfd8b44a81be55b33c7defbe96a1ddd79ed286eb4 (patch)
treedbe7fc7195d4b08731c112a39fdede0b763d4e2f
parent53a0ddb6d3bed9f9607af79934a7625299c36793 (diff)
downloadu-boot-fd8b44a81be55b33c7defbe96a1ddd79ed286eb4.zip
u-boot-fd8b44a81be55b33c7defbe96a1ddd79ed286eb4.tar.gz
u-boot-fd8b44a81be55b33c7defbe96a1ddd79ed286eb4.tar.bz2
boot: android: free newbootargs when done
Free newbootargs when the concatenation is done and bootargs env is set. Fixes: 86f4695b ("image: Fix Android boot image support") Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Nicolas Belin <nbelin@baylibre.com> Link: https://lore.kernel.org/r/20241217-fix-bootargs-concatenation-v2-2-b2fd7cf4e130@baylibre.com Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
-rw-r--r--boot/image-android.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/boot/image-android.c b/boot/image-android.c
index 5715828..362a5c7 100644
--- a/boot/image-android.c
+++ b/boot/image-android.c
@@ -322,6 +322,7 @@ int android_image_get_kernel(const void *hdr,
}
env_set("bootargs", newbootargs);
+ free(newbootargs);
if (os_data) {
if (image_get_magic(ihdr) == IH_MAGIC) {