Searched refs:new_lc (Results 1 – 1 of 1) sorted by relevance
133 struct loginclass *lc, *new_lc; in loginclass_find() local150 new_lc = malloc(sizeof(*new_lc), M_LOGINCLASS, M_ZERO | M_WAITOK); in loginclass_find()151 racct_create(&new_lc->lc_racct); in loginclass_find()152 refcount_init(&new_lc->lc_refcount, 1); in loginclass_find()153 strcpy(new_lc->lc_name, name); in loginclass_find()162 LIST_INSERT_HEAD(&loginclasses, new_lc, lc_next); in loginclass_find()164 lc = new_lc; in loginclass_find()167 racct_destroy(&new_lc->lc_racct); in loginclass_find()168 free(new_lc, M_LOGINCLASS); in loginclass_find()