Searched refs:tmp_roles (Results 1 – 2 of 2) sorted by relevance
30 char **tmp_roles = (char **)malloc(tmp_nroles * sizeof(char *)); in sepol_role_list() local33 if (!tmp_roles) in sepol_role_list()37 tmp_roles[i] = strdup(policydb->p_role_val_to_name[i]); in sepol_role_list()38 if (!tmp_roles[i]) in sepol_role_list()43 *roles = tmp_roles; in sepol_role_list()50 ptr = tmp_roles; in sepol_role_list()53 free(tmp_roles); in sepol_role_list()
221 char **tmp_roles = NULL; in hidden_def() local226 tmp_roles = (char **)calloc(1, sizeof(char *) * num_roles); in hidden_def()227 if (!tmp_roles) in hidden_def()231 tmp_roles[i] = strdup(roles_arr[i]); in hidden_def()232 if (!tmp_roles[i]) in hidden_def()241 user->roles = tmp_roles; in hidden_def()249 if (tmp_roles) { in hidden_def()251 if (!tmp_roles[i]) in hidden_def()253 free(tmp_roles[i]); in hidden_def()256 free(tmp_roles); in hidden_def()[all …]