donghengqaz commented on code in PR #8974:
URL: https://github.com/apache/nuttx/pull/8974#discussion_r1159570710


##########
fs/vfs/fs_rename.c:
##########
@@ -244,7 +244,7 @@ static int pseudorename(FAR const char *oldpath, FAR struct 
inode *oldinode,
   RELEASE_SEARCH(&newdesc);
   if (subdir != NULL)
     {
-      kmm_free(subdir);
+      lib_free(subdir);

Review Comment:
   `ESP32_SPIRAM_USER_HEAP` is used both in FLAT and protect mode. When use 
`ESP32_SPIRAM_COMMON_HEAP` mode(FLAT only), we have single libc for kernel and 
apps, because in this mode, malloc == kmm_malloc.



-- 
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]

Reply via email to