Fix memleak spoted by COV
This commit is contained in:
parent
c253cc5d6f
commit
bb257d0606
1 changed files with 1 additions and 0 deletions
|
|
@ -1431,6 +1431,7 @@ R_API int r_core_anal_search(RCore *core, ut64 from, ut64 to, ut64 ref) {
|
|||
r_io_use_desc (core->io, core->file->desc);
|
||||
if (ref==0LL) {
|
||||
eprintf ("Null reference search is not supported\n");
|
||||
free (buf);
|
||||
return -1;
|
||||
}
|
||||
r_cons_break (NULL, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue