Fix memleak reported by @zlowram

This commit is contained in:
pancake 2018-06-13 00:50:50 +02:00
parent 3e126d26b6
commit 34a88a9baa
2 changed files with 1 additions and 1 deletions

View File

@ -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."

View File

@ -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;
}