You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/26 08:35:27 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6928: tmpfs: Avoid potential kmm_free(NULL)

xiaoxiang781216 commented on code in PR #6928:
URL: https://github.com/apache/incubator-nuttx/pull/6928#discussion_r955800443


##########
fs/tmpfs/fs_tmpfs.c:
##########
@@ -1442,7 +1442,11 @@ static int tmpfs_close(FAR struct file *filep)
        * have any other references.
        */
 
-      kmm_free(tfo->tfo_data);

Review Comment:
   but kmm_free/mm_free will check NULL for us.



-- 
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-unsubscribe@nuttx.apache.org

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