Skip to content

Commit

Permalink
purge core->files list when we close all files.
Browse files Browse the repository at this point in the history
  • Loading branch information
crowell committed Feb 7, 2015
1 parent 87f6af9 commit 8f7fcc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions libr/core/cmd_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion libr/core/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\":%"
Expand Down

0 comments on commit 8f7fcc9

Please sign in to comment.