Fix memleak in parse_relocs_from_indirect_syms()
This commit is contained in:
parent
73fcbd801d
commit
6c20796600
1 changed files with 4 additions and 1 deletions
|
|
@ -507,7 +507,10 @@ static void parse_relocs_from_indirect_syms(RzSkipList *dst, struct MACH0_(obj_t
|
|||
break;
|
||||
}
|
||||
reloc->ord = j;
|
||||
rz_skiplist_insert(dst, reloc);
|
||||
RzSkipListNode *node = rz_skiplist_insert(dst, reloc);
|
||||
if (node->data != reloc) {
|
||||
free(reloc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue