projects
/
platform
/
core
/
messaging
/
msg-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SVACE issue fix
[platform/core/messaging/msg-service.git]
/
framework
/
storage-handler
/
MsgStorageFolder.cpp
diff --git
a/framework/storage-handler/MsgStorageFolder.cpp
b/framework/storage-handler/MsgStorageFolder.cpp
index
1688fec
..
bf12ef3
100755
(executable)
--- a/
framework/storage-handler/MsgStorageFolder.cpp
+++ b/
framework/storage-handler/MsgStorageFolder.cpp
@@
-133,6
+133,11
@@
msg_error_t MsgStoGetFolderList(msg_struct_list_s *pFolderList)
pFolderList->msg_struct_info = (msg_struct_t *)calloc(rowCnt, sizeof(MSG_FOLDER_INFO_S *));
pFolderList->msg_struct_info = (msg_struct_t *)calloc(rowCnt, sizeof(MSG_FOLDER_INFO_S *));
+ if (pFolderList->msg_struct_info == NULL){
+ dbHandle->freeTable();
+ return MSG_ERR_NULL_POINTER;
+ }
+
msg_struct_s* pTmp = NULL;
for (int i = 0; i < rowCnt; i++) {
msg_struct_s* pTmp = NULL;
for (int i = 0; i < rowCnt; i++) {