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:
wangtiantian
2022-04-19 10:55:05 +08:00
parent 7dbda9caec
commit 821c495419
+1
View File
@@ -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);