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 <bmeng@tinylab.org> Reviewed-by: Rick Chen <rick@andestech.com>
This commit is contained in:
parent
fb3cc482da
commit
781a0308f4
1 changed files with 2 additions and 0 deletions
|
@ -118,5 +118,7 @@ int main(int argc, const char *const *argv)
|
|||
prelink_le32(data);
|
||||
}
|
||||
|
||||
munmap(data, st.st_size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue