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:
parent
ae2ebce42b
commit
bed1845333
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user