projects
/
platform
/
core
/
appfw
/
pkgmgr-info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923c0a1
)
Fix static analysis issue
68/220068/1
author
Ilho Kim
<ilho159.kim@samsung.com>
Fri, 13 Dec 2019 01:43:00 +0000
(10:43 +0900)
committer
Ilho Kim
<ilho159.kim@samsung.com>
Fri, 13 Dec 2019 01:43:00 +0000
(10:43 +0900)
- Fix possibility of memory leak
Change-Id: Ib45dab53ce7f988a52c2b1987782487e7aa07b99
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/pkgmgrinfo_appinfo.c
patch
|
blob
|
history
diff --git
a/src/pkgmgrinfo_appinfo.c
b/src/pkgmgrinfo_appinfo.c
index
b50e08d
..
6089262
100644
(file)
--- a/
src/pkgmgrinfo_appinfo.c
+++ b/
src/pkgmgrinfo_appinfo.c
@@
-791,6
+791,7
@@
static int _pkgmgrinfo_get_appinfo(const char *appid, uid_t uid,
appid, uid);
g_hash_table_destroy(list);
free(locale);
+ free(info);
return PMINFO_R_ENOENT;
}
info->locale = locale;
@@
-799,6
+800,7
@@
static int _pkgmgrinfo_get_appinfo(const char *appid, uid_t uid,
_LOGE("out of memory");
g_hash_table_destroy(list);
free(locale);
+ free(info);
return PMINFO_R_ERROR;
}