Fix memleak reported by @zlowram
This commit is contained in:
parent
3e126d26b6
commit
34a88a9baa
|
@ -1342,7 +1342,6 @@ static int cmd_open(void *data, const char *input) {
|
|||
case 0:
|
||||
case '?':
|
||||
r_core_cmd_help (core, help_msg_o_);
|
||||
eprintf ("Usage: o-#, o-! or o-*, where # is the filedescriptor number\n");
|
||||
}
|
||||
break;
|
||||
case '.': // "o."
|
||||
|
|
|
@ -911,6 +911,7 @@ R_API int r_core_file_close(RCore *r, RCoreFile *fh) {
|
|||
}
|
||||
}
|
||||
r_io_desc_close (desc);
|
||||
r_core_file_free (fh);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue