diff --git a/fs/inode/fs_files.c b/fs/inode/fs_files.c index 5dc81c0669..8379361ba3 100644 --- a/fs/inode/fs_files.c +++ b/fs/inode/fs_files.c @@ -140,7 +140,7 @@ static int files_extend(FAR struct filelist *list, size_t row) for (j = orig_rows; j < i; j++) { - kmm_free(files[i]); + kmm_free(files[j]); } kmm_free(files);