mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 05:41:43 +00:00
Fix memory leak in blaze anal and silent a warning
This commit is contained in:
parent
aa3f438236
commit
054c40fe02
@ -197,7 +197,8 @@ static void createFunction(RCore *core, fcn_t* fcn, const char *name) {
|
||||
r_anal_fcn_add_bb (core->anal, f, cur->start, (cur->end - cur->start), cur->jump, cur->fail, 0, NULL);
|
||||
}
|
||||
if (!r_anal_fcn_insert (core->anal, f)) {
|
||||
eprintf ("Failed to insert function\n");
|
||||
// eprintf ("Failed to insert function\n");
|
||||
r_anal_fcn_free (f);
|
||||
//TODO free not added function
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user