diff --git a/libr/fs/p/fs_posix.c b/libr/fs/p/fs_posix.c index 20f2ca6370..90e7ee3bd8 100644 --- a/libr/fs/p/fs_posix.c +++ b/libr/fs/p/fs_posix.c @@ -52,6 +52,7 @@ static RList *fs_posix_dir(RFSRoot *root, const char *path, int view /*ignored*/ } r_list_append (list, fsf); } + closedir (dir); return list; }