!970 【回合monthly_1018】open接口内存泄漏优化
Merge pull request !970 from wangchen/1217_1018
This commit is contained in:
@@ -275,6 +275,7 @@ static int VfsOpen(const char *path, int flags)
|
||||
fd = FileToFd(file);
|
||||
file->fStatus = FILE_STATUS_READY; /* file now ready to use */
|
||||
} else {
|
||||
LOSCFG_FS_FREE_HOOK((void *)file->fullPath);
|
||||
VfsFilePut(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user