mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 04:28:20 +00:00
Fix CID 1191953
This commit is contained in:
parent
3ce47f7863
commit
3a4ab6442e
@ -101,6 +101,7 @@ R_API RAnalHint *r_anal_hint_from_string(RAnal *a, ut64 addr, const char *str) {
|
||||
if (!nxt)
|
||||
break;
|
||||
}
|
||||
free (s);
|
||||
return hint;
|
||||
}
|
||||
|
||||
@ -111,7 +112,9 @@ R_API RAnalHint *r_anal_hint_get(RAnal *a, ut64 addr) {
|
||||
|
||||
setf (key, "hint.0x%"PFMT64x, addr);
|
||||
s = sdb_const_get (DB, key, 0);
|
||||
if (!s) return NULL;
|
||||
if (!s) {
|
||||
return NULL;
|
||||
}
|
||||
hint = r_anal_hint_from_string (a, addr, s);
|
||||
free (s);
|
||||
return hint;
|
||||
|
Loading…
x
Reference in New Issue
Block a user