mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 14:54:54 +00:00
Fix CID 1211172
This commit is contained in:
parent
32afcd8215
commit
e825bd3080
@ -571,7 +571,6 @@ R_API int r_fs_prompt (RFS *fs, const char *root) {
|
||||
if (list) {
|
||||
r_list_foreach (list, iter, file)
|
||||
printf ("%c %s\n", file->type, file->name);
|
||||
r_list_free (list);
|
||||
} else eprintf ("Unknown path: %s\n", path);
|
||||
} else if (!strncmp (buf, "pwd", 3)) {
|
||||
eprintf ("%s\n", path);
|
||||
@ -665,7 +664,7 @@ R_API int r_fs_prompt (RFS *fs, const char *root) {
|
||||
beach:
|
||||
clearerr (stdin);
|
||||
printf ("\n");
|
||||
if (list) r_list_free (list);
|
||||
r_list_free (list);
|
||||
return R_TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user