Fix CID 1211171

This commit is contained in:
condret 2014-05-06 10:52:31 +02:00 committed by pancake
parent eb533343e8
commit 5de3a28205

View File

@ -1361,7 +1361,7 @@ R_API RList* r_core_anal_cycles (RCore *core, int ccl)
RAnalCycleHook *ch; RAnalCycleHook *ch;
RList *hooks = r_list_new (); RList *hooks = r_list_new ();
while (cf && !core->cons->breaked) { while (cf && !core->cons->breaked) {
if ((ccl > 0) && (op = r_core_anal_op (core, addr)) && (op->cycles)) { if ((op = r_core_anal_op (core, addr)) && (op->cycles) && (ccl > 0)) {
r_cons_clear_line (1); r_cons_clear_line (1);
eprintf ("%i -- ", ccl); eprintf ("%i -- ", ccl);
addr += op->size; addr += op->size;
@ -1498,7 +1498,7 @@ R_API RList* r_core_anal_cycles (RCore *core, int ccl)
} }
} }
} }
if (op) r_anal_op_free (op); r_anal_op_free (op);
} }
if (core->cons->breaked) { if (core->cons->breaked) {
while (cf) { while (cf) {