handled coverity issue 33/281833/2
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 22 Sep 2022 07:47:45 +0000 (13:17 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 22 Sep 2022 16:21:29 +0000 (21:51 +0530)
Change-Id: I4a92cb0b725d54c09413919fce22cef502051137
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
server/ctsvc_ipc_server.c

index 836a079..64dfb85 100644 (file)
@@ -1504,6 +1504,7 @@ void ctsvc_ipc_server_db_delete_records(pims_ipc_h ipc, pims_ipc_data_h indata,
                ids = (int*)malloc(sizeof(int)*count);
                if (ids == NULL) {
                        ERR("malloc failed()");
+                       return;
                }
                for (i = 0; i < count; i++) {
                        ret = ctsvc_ipc_unmarshal_int(indata, &ids[i]);