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:
Philip Withnall 2024-02-05 10:07:10 +00:00
commit 8109e91236

View File

@ -165,6 +165,7 @@ get_elf (const gchar *file,
if (elf_kind (elf) != ELF_K_ELF) if (elf_kind (elf) != ELF_K_ELF)
{ {
elf_end (elf);
g_close (*fd, NULL); g_close (*fd, NULL);
*fd = -1; *fd = -1;
return NULL; return NULL;