projects
/
platform
/
core
/
pim
/
contacts-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a39fc70
)
Check return type
85/272985/1
author
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Thu, 23 Sep 2021 17:01:46 +0000
(22:31 +0530)
committer
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Tue, 29 Mar 2022 08:32:51 +0000
(08:32 +0000)
Change-Id: Ief6e2780355939214d74199e55698e9f75be6caf
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
(cherry picked from commit
2fd6599c3b5adedd7e6af5caf3d3ad5136ebd2f8
)
server/ctsvc_ipc_server.c
patch
|
blob
|
history
diff --git
a/server/ctsvc_ipc_server.c
b/server/ctsvc_ipc_server.c
index 3cda369f57ed19630566941e83e723b8ab512aaf..836a0794784c0624dee866a48b77131d918a6959 100644
(file)
--- a/
server/ctsvc_ipc_server.c
+++ b/
server/ctsvc_ipc_server.c
@@
-1502,6
+1502,9
@@
void ctsvc_ipc_server_db_delete_records(pims_ipc_h ipc, pims_ipc_data_h indata,
/* LCOV_EXCL_STOP */
}
ids = (int*)malloc(sizeof(int)*count);
+ if (ids == NULL) {
+ ERR("malloc failed()");
+ }
for (i = 0; i < count; i++) {
ret = ctsvc_ipc_unmarshal_int(indata, &ids[i]);
if (ret != CONTACTS_ERROR_NONE) {
@@
-1638,6
+1641,9
@@
void ctsvc_ipc_server_db_replace_records(pims_ipc_h ipc, pims_ipc_data_h indata,
}
ids = (int*)malloc(sizeof(int)*count);
+ if (ids == NULL) {
+ ERR("malloc() failed");
+ }
for (i = 0; i < count; i++) {
ret = ctsvc_ipc_unmarshal_int(indata, &ids[i]);
if (ret != CONTACTS_ERROR_NONE) {