mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +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
Notes:
sideshowbarker
2024-07-18 22:38:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1d394b8a760
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…
Reference in a new issue