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:
916b572
)
Fix allocation check logic correctly
31/234931/1
author
Ilho Kim
<ilho159.kim@samsung.com>
Mon, 1 Jun 2020 01:54:55 +0000
(10:54 +0900)
committer
Ilho Kim
<ilho159.kim@samsung.com>
Mon, 1 Jun 2020 01:55:39 +0000
(10:55 +0900)
Change-Id: I144e4ce617584e82a8558056f4863d8c9ca206d6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/pkg_upgrade.c
patch
|
blob
|
history
diff --git
a/src/pkg_upgrade.c
b/src/pkg_upgrade.c
index
115b8a0
..
a4ed1b8
100644
(file)
--- a/
src/pkg_upgrade.c
+++ b/
src/pkg_upgrade.c
@@
-358,7
+358,7
@@
static int __insert_preload_rw_table(GHashTable *preload_rw_table,
}
package = strdup(pkgid);
- if (
info->typ
e == NULL) {
+ if (
packag
e == NULL) {
_LOGE("out of memory");
__free_pkginfo((struct pkginfo *)info);
return -1;