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:

committed by
Leo Yu-Chi Liang

parent
fb3cc482da
commit
781a0308f4
@@ -118,5 +118,7 @@ int main(int argc, const char *const *argv)
|
|||||||
prelink_le32(data);
|
prelink_le32(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
munmap(data, st.st_size);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user