Fix minor memleak on fail for macho

This commit is contained in:
pancake 2021-03-15 00:52:32 +01:00 committed by pancake
parent b24dfd8e63
commit c5e45f935d

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2010-2020 - nibble, pancake */
/* radare - LGPL - Copyright 2010-2021 - nibble, mrmacete, pancake */
#include <stdio.h>
#include <r_types.h>
@ -3149,6 +3149,7 @@ static void parse_relocation_info(struct MACH0_(obj_t) *bin, RSkipList * relocs,
struct reloc_t *reloc = R_NEW0 (struct reloc_t);
if (!reloc) {
free (info);
free (sym_name);
return;
}