Fix recently introduced memleak and update latest numvars list

This commit is contained in:
pancake 2024-10-31 08:36:46 +01:00 committed by pancake
parent 9d176c99a9
commit 25b4d5dbbd
2 changed files with 7 additions and 3 deletions

View File

@ -3165,17 +3165,20 @@ static char *filename(RCore *core, ut64 addr) {
}
static bool is_recursive(RCore *core, RAnalFunction *fcn) {
bool res = false;
RVecAnalRef *refs = r_core_anal_fcn_get_calls (core, fcn);
if (refs && !RVecAnalRef_empty (refs)) {
RAnalRef *refi;
ut64 at = fcn->addr;
R_VEC_FOREACH (refs, refi) {
if (at == refi->addr) {
return true;
res = true;
break;
}
}
}
return false;
RVecAnalRef_free (refs);
return res;
}
static int fcn_print_json(RCore *core, RAnalFunction *fcn, bool dorefs, PJ *pj) {

View File

@ -1168,7 +1168,8 @@ static int cmd_help(void *data, const char *input) {
const char *vars[] = {
"$$", "$$c", "$$$", "$$$c", "$?", "$B", "$b", "$c", "$Cn", "$D", "$DB", "$DD", "$Dn",
"$is", "$ij", "$if", "$ir", "$iv", "$in", "$ip",
"$e", "$f", "$F", "$Fb", "$FB", "$Fe", "$FE", "$Ff", "$Fi", "$FI", "$Fj",
"$f", "$fs", "$fd", "$fe",
"$e", "$F", "$Fb", "$FB", "$Fe", "$FE", "$Ff", "$Fi", "$FI", "$Fj",
"$fl", "$FS", "$Fs", "$FSS", "$Ja", "$M", "$MM",
"$o", "$p", "$P", "$s", "$S", "$SS", "$w", "$Xn", NULL
};