inode:call inode_release when close success

inode will be double released
in close(fd) and files_putlist(&group->tg_filelist)

Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
guohao15 2024-08-09 16:13:56 +08:00 committed by Xiang Xiao
parent ae2ebce42b
commit bed1845333

View File

@ -81,7 +81,10 @@ int file_close_without_clear(FAR struct file *filep)
/* And release the inode */
inode_release(inode);
if (ret >= 0)
{
inode_release(inode);
}
}
return ret;