projects
/
platform
/
core
/
appfw
/
slp-pkgmgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
869c8d6
)
Fix static analysis
author
Junghyun Yeon
<jungh.yeon@samsung.com>
Mon, 13 Sep 2021 00:51:10 +0000
(09:51 +0900)
committer
Junghyun Yeon
<jungh.yeon@samsung.com>
Tue, 14 Sep 2021 04:18:01 +0000
(13:18 +0900)
Change-Id: Id188d8a5e68d4c326ca6b27dc3660c687729048c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
client/src/pkgmgr.c
patch
|
blob
|
history
diff --git
a/client/src/pkgmgr.c
b/client/src/pkgmgr.c
index 509d2a642eeb89b7a511bcef7a9b80c815ba1a38..990005c76bbbee9ee9597e917131f345a0523169 100644
(file)
--- a/
client/src/pkgmgr.c
+++ b/
client/src/pkgmgr.c
@@
-3129,6
+3129,7
@@
API int pkgmgr_res_event_info_add_path_state(pkgmgr_res_event_info *handle,
path_state->path = strdup(path);
if (path_state->path == NULL) {
ERR("out of memory");
+ free(path_state);
return PKGMGR_R_ENOMEM;
}
path_state->state = state;