purge core->files list when we close all files.

This commit is contained in:
Jeffrey Crowell 2015-02-06 21:05:46 -05:00
parent 87f6af96a3
commit 8f7fcc91ce
2 changed files with 1 additions and 1 deletions

View file

@ -325,6 +325,7 @@ static int cmd_open(void *data, const char *input) {
r_core_file_close_fd (core, -1);
r_io_close_all (core->io);
r_bin_file_delete_all (core->bin);
r_list_purge(core->files);
break;
case '-': // "o--"
eprintf ("All core files, io, anal and flags info purged.\n");

View file

@ -785,7 +785,6 @@ R_API int r_core_file_list(RCore *core, int mode) {
from = 0LL;
overlapped = R_FALSE;
}
if (!f->desc->uri) continue;
switch (mode) {
case 'j':
r_cons_printf ("{\"raised\":%s,\"fd\":%d,\"uri\":\"%s\",\"from\":%"