klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

Potential memory leaks in linker.c #195

Closed ZanyXDev closed 4 years ago

ZanyXDev commented 4 years ago

In function static elf_t open_object(const char path) used FILE * f = fopen(file, "r"); without fclose(f)

klange commented 4 years ago

The pointer is stored and eventually fclosed in do_actual_load