Lines Matching refs:newNode
84 TpduRecvBuff_List_t* newNode = NULL; in DataMgmt_StoreDataInList() local
89 newNode = (TpduRecvBuff_List_t*)malloc(sizeof(TpduRecvBuff_List_t)); in DataMgmt_StoreDataInList()
90 if (newNode == NULL) { in DataMgmt_StoreDataInList()
93 newNode->pNext = NULL; in DataMgmt_StoreDataInList()
94 newNode->tData.len = data_len; in DataMgmt_StoreDataInList()
95 newNode->tData.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in DataMgmt_StoreDataInList()
96 if (newNode->tData.data == NULL) { in DataMgmt_StoreDataInList()
97 free(newNode); in DataMgmt_StoreDataInList()
100 memcpy(newNode->tData.data, pbuff, data_len); in DataMgmt_StoreDataInList()
104 head = newNode; in DataMgmt_StoreDataInList()
105 current = newNode; in DataMgmt_StoreDataInList()
107 current->pNext = newNode; in DataMgmt_StoreDataInList()
108 current = newNode; in DataMgmt_StoreDataInList()