Fix static analysis 58/263858/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 13 Sep 2021 00:51:10 +0000 (09:51 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 13 Sep 2021 00:51:10 +0000 (09:51 +0900)
Change-Id: Id188d8a5e68d4c326ca6b27dc3660c687729048c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
client/src/pkgmgr.c

index 5094f1d..650b2fe 100644 (file)
@@ -3131,6 +3131,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;