fs/inode: fix assert when free error address

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-05-22 16:51:20 +08:00 committed by Xiang Xiao
parent c978f2fe4c
commit 6542806248

View File

@ -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);