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:
1e26bf7
)
Fix static analyzer issues
19/122619/1
accepted/tizen/3.0/common/20170406.142204
accepted/tizen/3.0/ivi/20170406.041523
accepted/tizen/3.0/mobile/20170406.041116
accepted/tizen/3.0/tv/20170406.041408
accepted/tizen/3.0/wearable/20170406.041501
submit/tizen_3.0/20170405.011715
author
Sangyoon Jang
<s89.jang@samsung.com>
Fri, 31 Mar 2017 12:09:56 +0000
(21:09 +0900)
committer
Sangyoon Jang
<s89.jang@samsung.com>
Mon, 3 Apr 2017 05:19:26 +0000
(22:19 -0700)
Change-Id: I94f39bbc7c2721865ed868b496d7d633e9588c7a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit
1b60b9a1e69b79cc2c6c2c4008de9d1dfe02d425
)
src/pkg_info.c
patch
|
blob
|
history
diff --git
a/src/pkg_info.c
b/src/pkg_info.c
index de8415406673b2c3cb8e1e1294037339ebc7ca86..8973bb651aee4c2a776d387839243cc77478fe3a 100644
(file)
--- a/
src/pkg_info.c
+++ b/
src/pkg_info.c
@@
-1089,6
+1089,7
@@
static int __get_certinfo_from_db(char *pkgid, uid_t uid)
ret = pkgmgrinfo_pkginfo_load_certinfo(pkgid, handle, uid);
if (ret < 0) {
printf("pkgmgrinfo_pkginfo_load_certinfo failed\n");
+ pkgmgrinfo_pkginfo_destroy_certinfo(handle);
return -1;
}
@@
-1348,12
+1349,6
@@
static int __set_certinfo_in_db(char *pkgid, uid_t uid)
break;
default:
printf("Invalid Number Entered\n");
- choice = 0;
- ret = pkgmgr_installer_destroy_certinfo_set_handle(handle);
- if (ret < 0) {
- printf("pkgmgr_installer_destroy_certinfo_set_handle failed\n");
- return -1;
- }
break;
}
}