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,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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user