From: Junghyun Yeon Date: Mon, 13 Sep 2021 00:51:10 +0000 (+0900) Subject: Fix static analysis X-Git-Tag: submit/tizen_6.0/20210914.035904~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06ebf80d4b4bc124003f474c6976c972263d6b3f;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix static analysis Change-Id: Id188d8a5e68d4c326ca6b27dc3660c687729048c Signed-off-by: Junghyun Yeon --- diff --git a/client/src/pkgmgr.c b/client/src/pkgmgr.c index 509d2a6..990005c 100644 --- 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;