mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 15:41:38 +00:00
Fix null deref in aao (#17313)
This commit is contained in:
parent
dd8120a129
commit
52a64537fb
@ -687,7 +687,7 @@ static RBinReloc *reloc_convert(struct Elf_(r_bin_elf_obj_t) *bin, RBinElfReloc
|
||||
#undef ADD
|
||||
|
||||
free (r);
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static RList* relocs(RBinFile *bf) {
|
||||
|
@ -204,8 +204,10 @@ static RCoreObjc *core_objc_new(RCore *core) {
|
||||
}
|
||||
|
||||
static void core_objc_free(RCoreObjc *o) {
|
||||
ht_up_free (o->up);
|
||||
free (o);
|
||||
if (o) {
|
||||
ht_up_free (o->up);
|
||||
free (o);
|
||||
}
|
||||
}
|
||||
|
||||
static bool objc_find_refs(RCore *core) {
|
||||
|
Loading…
Reference in New Issue
Block a user