mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
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:
+4
-1
@@ -81,7 +81,10 @@ int file_close_without_clear(FAR struct file *filep)
|
|||||||
|
|
||||||
/* And release the inode */
|
/* And release the inode */
|
||||||
|
|
||||||
inode_release(inode);
|
if (ret >= 0)
|
||||||
|
{
|
||||||
|
inode_release(inode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user