diff --git a/tools/prelink-riscv.c b/tools/prelink-riscv.c index b0467949ebe..43d6412ee9b 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; }