diff --git a/libr/core/cmd_anal.inc.c b/libr/core/cmd_anal.inc.c index 91bbaaabb02bc..91666383fca8e 100644 --- a/libr/core/cmd_anal.inc.c +++ b/libr/core/cmd_anal.inc.c @@ -7641,9 +7641,6 @@ static bool cmd_aea_stuff(RCore* core, int mode, ut64 addr, int length, const ch break; } r_anal_op_fini (&aop); - if (len < 1) { - len = 1; - } } r_cons_break_pop (); esil->nowrite = false; @@ -7685,6 +7682,7 @@ static bool cmd_aea_stuff(RCore* core, int mode, ut64 addr, int length, const ch } else if ((mode >> 4) & 1) { pj = r_core_pj_new (core); if (!pj) { + free (regnow); return false; } pj_o (pj); diff --git a/libr/core/cmd_eval.inc.c b/libr/core/cmd_eval.inc.c index 6173d74f8bb1f..8bb36058f3431 100644 --- a/libr/core/cmd_eval.inc.c +++ b/libr/core/cmd_eval.inc.c @@ -594,6 +594,7 @@ static bool cmd_ec(RCore *core, const char *input) { color_code ? color_code : r_cons_singleton ()->context->pal.wordhl); r_meta_set_string (core->anal, R_META_TYPE_HIGHLIGHT, core->offset, dup); r_str_argv_free (argv); + free (color_code); R_FREE (word); R_FREE (dup); }