Lines Matching refs:head
96 ParamContextsList *head = *list; in TestDestroyParamList() local
97 while (head != nullptr) { in TestDestroyParamList()
98 ParamContextsList *next = head->next; in TestDestroyParamList()
99 free((void *)head->info.paraName); in TestDestroyParamList()
100 free((void *)head->info.paraContext); in TestDestroyParamList()
101 free(head); in TestDestroyParamList()
102 head = next; in TestDestroyParamList()
109 ParamContextsList *head = (ParamContextsList *)malloc(sizeof(ParamContextsList)); in TestGetParamList() local
110 BEGET_ERROR_CHECK(head != nullptr, return nullptr, "Failed to alloc ParamContextsList"); in TestGetParamList()
111 head->info.paraName = strdup(selinuxLabels[0][0]); in TestGetParamList()
112 head->info.paraContext = strdup(selinuxLabels[0][1]); in TestGetParamList()
113 head->next = nullptr; in TestGetParamList()
116 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head); in TestGetParamList()
120 node->next = head->next; in TestGetParamList()
121 head->next = node; in TestGetParamList()
123 return head; in TestGetParamList()