projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b740c
)
Fix calculating space for unpacking zip
23/67623/4
accepted/tizen/common/20160427.144540
accepted/tizen/ivi/20160428.003120
accepted/tizen/mobile/20160428.005009
accepted/tizen/tv/20160428.002938
accepted/tizen/wearable/20160428.003303
submit/tizen/20160427.140900
author
Tomasz Iwanek
<t.iwanek@samsung.com>
Wed, 27 Apr 2016 12:35:38 +0000
(14:35 +0200)
committer
Tomasz Iwanek
<t.iwanek@samsung.com>
Wed, 27 Apr 2016 12:52:56 +0000
(
05:52
-0700)
Change-Id: I83247d0ab716f6fddc250579f06a1bba2c4b353d
src/common/utils/file_util.cc
patch
|
blob
|
history
diff --git
a/src/common/utils/file_util.cc
b/src/common/utils/file_util.cc
index
32d7213
..
ab41463
100644
(file)
--- a/
src/common/utils/file_util.cc
+++ b/
src/common/utils/file_util.cc
@@
-258,9
+258,11
@@
int64_t GetUnpackedPackageSize(const bf::path& path) {
if (unzGetCurrentFileInfo64(zip_file, &raw_file_info, raw_file_name_in_zip,
sizeof(raw_file_name_in_zip), nullptr, 0, nullptr, 0) != UNZ_OK) {
LOG(ERROR) << "Failed to read file info";
+ unzClose(zip_file);
return -1;
}
size += RoundUpToBlockSizeOf(raw_file_info.uncompressed_size, block_size);
+ unzGoToNextFile(zip_file);
}
// FIXME: calculate space needed for directories