mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibELF: Close dynamic objects after mapping and linking them
Oops, we were leaving the file descriptors open.
This commit is contained in:
parent
02520f16e3
commit
1d394b8a76
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ DynamicLoader::DynamicLoader(int fd, String filename, void* data, size_t size)
|
|||
DynamicLoader::~DynamicLoader()
|
||||
{
|
||||
munmap(m_file_data, m_file_size);
|
||||
close(m_image_fd);
|
||||
}
|
||||
|
||||
const DynamicObject& DynamicLoader::dynamic_object() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue