Donny9 commented on code in PR #16431:
URL: https://github.com/apache/nuttx/pull/16431#discussion_r2104462877


##########
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:
   > This problem will not exist after #16361 I think ?
   
   @pussuw  You can construct a test case and try it out using the example I 
provided above, or I can test your patch over the weekend to see if it resolves 
this issue.



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to