Lines Matching defs:head
125 ParamContextsList *head = *list;
126 while (head != nullptr) {
127 ParamContextsList *next = head->next;
128 free((void *)head->info.paraName);
129 free((void *)head->info.paraContext);
130 free(head);
131 head = next;
138 ParamContextsList *head = (ParamContextsList *)malloc(sizeof(ParamContextsList));
139 BEGET_ERROR_CHECK(head != nullptr, return nullptr, "Failed to alloc ParamContextsList");
140 head->info.paraName = strdup(selinuxLabels[0][0]);
141 head->info.paraContext = strdup(selinuxLabels[0][1]);
142 head->info.index = 0;
143 head->next = nullptr;
146 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
151 node->next = head->next;
152 head->next = node;
156 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
160 node->next = head->next;
161 head->next = node;
165 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
169 node->next = head->next;
170 head->next = node;
174 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
179 node->next = head->next;
180 head->next = node;
181 return head;