When we cannot allocate enough memory to convert the data in
updatemmap we should free the scns before returning an error.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2019-03-06 Mark Wielaard <mark@klomp.org>
+
+ * elf32_updatefile.c (updatemmap): Free scns before returning
+ allocation failure.
+
2019-02-24 Mark Wielaard <mark@klomp.org>
* gelf_xlate.c (__elf_xfctstof): Remove alias.
char *converted = aligned_alloc (align, size);
if (converted == NULL)
{
+ free (scns);
__libelf_seterrno (ELF_E_NOMEM);
return 1;
}