mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-20 11:08:53 +00:00
v1.2.1
This commit is contained in:
@@ -466,7 +466,11 @@ int dfs_elm_close(struct dfs_fd *file)
|
||||
fd = (FIL *)(file->data);
|
||||
RT_ASSERT(fd != RT_NULL);
|
||||
|
||||
result = f_close(fd);
|
||||
if (file->fs && file->fs->data)
|
||||
{
|
||||
/* close file if fs is not unmount */
|
||||
result = f_close(fd);
|
||||
}
|
||||
if (result == FR_OK)
|
||||
{
|
||||
/* release memory */
|
||||
|
||||
Reference in New Issue
Block a user