From 654280624855d6542741aa9eb9d573ef48d67b6d Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Wed, 22 May 2024 16:51:20 +0800 Subject: [PATCH] fs/inode: fix assert when free error address Signed-off-by: dongjiuzhu1 --- 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);