Skip to content

Commit 6542806

Browse files
Donny9xiaoxiang781216
authored andcommitted
fs/inode: fix assert when free error address
Signed-off-by: dongjiuzhu1 <[email protected]>
1 parent c978f2f commit 6542806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/inode/fs_files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int files_extend(FAR struct filelist *list, size_t row)
140140

141141
for (j = orig_rows; j < i; j++)
142142
{
143-
kmm_free(files[i]);
143+
kmm_free(files[j]);
144144
}
145145

146146
kmm_free(files);

0 commit comments

Comments
 (0)