pussuw commented on code in PR #16431:
URL: https://github.com/apache/nuttx/pull/16431#discussion_r2104159309
##########
fs/inode/fs_files.c:
##########
@@ -482,11 +482,11 @@ void files_putlist(FAR struct filelist *list)
{
file_close(&list->fl_files[i][j]);
}
+ }
- if (i != 0)
- {
- fs_heap_free(list->fl_files[i]);
- }
+ for (i = list->fl_rows - 1; i > 0; i--)
Review Comment:
Looks like the change is redundant, the old code works as far as I can see ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]