Fix CID 1191960

This commit is contained in:
Anton Kochkov 2014-05-04 19:21:05 +04:00
parent f762584982
commit 547ead1fb9
3 changed files with 16 additions and 15 deletions

View File

@ -170,14 +170,11 @@ static void handle_print_refptr (RCore *core, RDisasmState *ds);
static void handle_print_ptr (RCore *core, RDisasmState *ds, int len, int idx);
static int cmpaddr (void *_a, void *_b) {
RAnalBlock *a = _a, *b = _b;
return (a->addr > b->addr);
}
static RDisasmState * handle_init_ds (RCore * core) {
RDisasmState * ds = R_NEW0(RDisasmState);
ds->pal_comment = core->cons->pal.comment;
@ -1036,6 +1033,10 @@ static int handle_print_meta_infos (RCore * core, RDisasmState *ds, ut8* buf, in
break;
}
}
if (MI.str) {
free (MI.str);
MI.str = NULL;
}
}
return ret;
}