You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/08 17:24:15 UTC
(nuttx) 01/02: fs/inode: fix assert when free error address
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 654280624855d6542741aa9eb9d573ef48d67b6d
Author: dongjiuzhu1 <do...@xiaomi.com>
AuthorDate: Wed May 22 16:51:20 2024 +0800
fs/inode: fix assert when free error address
Signed-off-by: dongjiuzhu1 <do...@xiaomi.com>
---
fs/inode/fs_files.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);