mirror of
https://github.com/openharmony/appexecfwk_standard.git
synced 2026-07-19 14:06:09 -04:00
IssueNo: #I53EOL:file close
Description:file close Sig:SIG_ApplicaitonFramework Feature or Bugfix:BugFix Binary Source:No Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
@@ -198,6 +198,7 @@ bool ZipFile::Open()
|
||||
int64_t fileLength = ftell(tmpFile);
|
||||
if (fileLength == -1) {
|
||||
APP_LOGE("open file %{private}s failed", pathName_.c_str());
|
||||
fclose(tmpFile);
|
||||
return false;
|
||||
}
|
||||
fileLength_ = static_cast<ZipPos>(fileLength);
|
||||
|
||||
Reference in New Issue
Block a user