mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 13:49:50 +00:00
fix string name not freed
This commit is contained in:
parent
62a54b8a89
commit
704a497997
@ -1190,7 +1190,6 @@ static void ds_show_xrefs(RDisasmState *ds) {
|
||||
if (refi->at == ds->at) {
|
||||
fun = fcnIn (ds, refi->addr, -1);
|
||||
if (fun) {
|
||||
name = strdup (fun->name);
|
||||
if (iter != xrefs->tail) {
|
||||
ut64 next_addr = ((RAnalRef *)(iter->n->data))->addr;
|
||||
next_fun = r_anal_get_fcn_in (core->anal, next_addr, -1);
|
||||
@ -1199,11 +1198,11 @@ static void ds_show_xrefs(RDisasmState *ds) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
name = strdup (fun->name);
|
||||
r_list_append (addrs, refi->addr);
|
||||
} else {
|
||||
f = r_flag_get_at (core->flags, refi->addr, true);
|
||||
if (f) {
|
||||
name = strdup (f->name);
|
||||
if (iter != xrefs->tail) {
|
||||
ut64 next_addr = ((RAnalRef *)(iter->n->data))->addr;
|
||||
next_f = r_flag_get_at (core->flags, next_addr, true);
|
||||
@ -1212,6 +1211,7 @@ static void ds_show_xrefs(RDisasmState *ds) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
name = strdup (f->name);
|
||||
r_list_append (addrs, refi->addr - f->offset);
|
||||
} else {
|
||||
name = strdup ("unk");
|
||||
|
Loading…
Reference in New Issue
Block a user