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++) {