Lines Matching refs:temp
80 Ustr *ustr = USTR_NULL, *temp = USTR_NULL; in semanage_split_on_space() local
86 temp = in semanage_split_on_space()
89 if (!temp) in semanage_split_on_space()
92 ustr_sc_free(&temp); in semanage_split_on_space()
95 temp = ustr_dup_subustr(ustr, off + 1, rside_len); in semanage_split_on_space()
96 if (!temp) in semanage_split_on_space()
98 retval = strdup(ustr_cstr(temp)); in semanage_split_on_space()
99 ustr_sc_free(&temp); in semanage_split_on_space()
108 Ustr *ustr = USTR_NULL, *temp = USTR_NULL; in semanage_split() local
117 temp = in semanage_split()
119 if (!temp) in semanage_split()
122 ustr_sc_free(&temp); in semanage_split()
126 temp = ustr_dup_subustr(ustr, off + 1, rside_len); in semanage_split()
127 if (!temp) in semanage_split()
129 retval = strdup(ustr_cstr(temp)); in semanage_split()
130 ustr_sc_free(&temp); in semanage_split()
139 semanage_list_t *temp = NULL; in semanage_list_push() local
147 if (!(temp = malloc(sizeof(semanage_list_t)))) in semanage_list_push()
150 if (!(temp->data = strdup(data))) { in semanage_list_push()
151 free(temp); in semanage_list_push()
154 temp->next = *list; in semanage_list_push()
155 *list = temp; in semanage_list_push()
179 semanage_list_t *temp; in semanage_list_destroy() local
181 while ((temp = (*list))) { in semanage_list_destroy()
182 free(temp->data); in semanage_list_destroy()
183 (*list) = temp->next; in semanage_list_destroy()
184 free(temp); in semanage_list_destroy()
201 semanage_list_t *temp = NULL; in semanage_list_sort() local
208 for (temp = *l; temp; temp = temp->next) in semanage_list_sort()
214 for (temp = *l; temp; temp = temp->next) { in semanage_list_sort()
215 array[i++] = temp; in semanage_list_sort()
275 semanage_list_t *temp = malloc(sizeof(semanage_list_t)); in list_addafter_controlmem() local
277 if (!temp) in list_addafter_controlmem()
279 temp->data = data; in list_addafter_controlmem()
280 temp->next = item->next; in list_addafter_controlmem()
281 item->next = temp; in list_addafter_controlmem()
283 return temp; in list_addafter_controlmem()