diff options
author | Nicolas Belin <nbelin@baylibre.com> | 2024-12-17 14:29:09 +0100 |
---|---|---|
committer | Mattijs Korpershoek <mkorpershoek@baylibre.com> | 2024-12-18 14:04:23 +0100 |
commit | fd8b44a81be55b33c7defbe96a1ddd79ed286eb4 (patch) | |
tree | dbe7fc7195d4b08731c112a39fdede0b763d4e2f | |
parent | 53a0ddb6d3bed9f9607af79934a7625299c36793 (diff) | |
download | u-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.c | 1 |
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) { |