fs/inode: fix assert when free error address
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
c978f2fe4c
commit
6542806248
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue