From: Bin Meng Date: Thu, 13 Apr 2023 06:20:03 +0000 (+0800) Subject: tools: prelink-riscv: Unmap the ELF image when done X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=781a0308f43c118e9e94b57140c1ec92a0768a67;p=u-boot.git tools: prelink-riscv: Unmap the ELF image when done The codes forget to call munmap() to unmap the ELF image that was mapped by previous mmap(). Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- diff --git a/tools/prelink-riscv.c b/tools/prelink-riscv.c index b0467949eb..43d6412ee9 100644 --- a/tools/prelink-riscv.c +++ b/tools/prelink-riscv.c @@ -118,5 +118,7 @@ int main(int argc, const char *const *argv) prelink_le32(data); } + munmap(data, st.st_size); + return 0; }