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
+3
View File
@@ -81,8 +81,11 @@ int file_close_without_clear(FAR struct file *filep)
/* And release the inode */ /* And release the inode */
if (ret >= 0)
{
inode_release(inode); inode_release(inode);
} }
}
return ret; return ret;
} }