mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 14:54:54 +00:00
Fix minor memleak on fail for macho
This commit is contained in:
parent
b24dfd8e63
commit
c5e45f935d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user