mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Merge branch 'moskalets/fix-gresource-leak' into 'main'
gresources: fix memory leak from libelf Closes #3242 See merge request GNOME/glib!3875
This commit is contained in:
commit
8109e91236
@ -165,6 +165,7 @@ get_elf (const gchar *file,
|
||||
|
||||
if (elf_kind (elf) != ELF_K_ELF)
|
||||
{
|
||||
elf_end (elf);
|
||||
g_close (*fd, NULL);
|
||||
*fd = -1;
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user