projects
/
platform
/
core
/
appfw
/
pkgmgr-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b60b9a
)
Fix static analyzer issue
31/122531/2
author
jongmyeongko
<jongmyeong.ko@samsung.com>
Mon, 3 Apr 2017 01:34:46 +0000
(10:34 +0900)
committer
jongmyeong ko
<jongmyeong.ko@samsung.com>
Mon, 3 Apr 2017 05:22:20 +0000
(22:22 -0700)
Change-Id: I2b98a24932342e94f245094e85940a84cf8361d3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit
1e26bf7bec3de727741ed36109dca3d140f6eac3
)
src/pkg_getsize.c
patch
|
blob
|
history
diff --git
a/src/pkg_getsize.c
b/src/pkg_getsize.c
index 991480755899ae31e153082be8db3b01917c7e85..51c62707b5915f09f5142a7ed053b43dfd63f1cf 100644
(file)
--- a/
src/pkg_getsize.c
+++ b/
src/pkg_getsize.c
@@
-440,6
+440,7
@@
static int __calculate_pkg_size_info(STORAGE_TYPE type,
*app_size += __stat_size(&st);
LOGD("app_size: %lld", *app_size);
close(subfd);
+ subfd = -1;
}
}
if (ext_tep_path) {
@@
-464,6
+465,7
@@
static int __calculate_pkg_size_info(STORAGE_TYPE type,
*app_size += __stat_size(&st);
LOGD("app_size: %lld", *app_size);
close(subfd);
+ subfd = -1;
}
}
} else {