Lines Matching refs:newc
3162 ocontext_t *l, *c, *newc = NULL; in genfs_read() local
3214 newc = calloc(1, sizeof(ocontext_t)); in genfs_read()
3215 if (!newc) { in genfs_read()
3224 newc->u.name = malloc(len + 1); in genfs_read()
3225 if (!newc->u.name) { in genfs_read()
3228 rc = next_entry(newc->u.name, fp, len); in genfs_read()
3231 newc->u.name[len] = 0; in genfs_read()
3235 newc->v.sclass = le32_to_cpu(buf[0]); in genfs_read()
3236 if (context_read_and_validate(&newc->context[0], p, fp)) in genfs_read()
3240 if (!strcmp(newc->u.name, c->u.name) && in genfs_read()
3241 (!c->v.sclass || !newc->v.sclass || in genfs_read()
3242 newc->v.sclass == c->v.sclass)) { in genfs_read()
3248 len = strlen(newc->u.name); in genfs_read()
3253 newc->next = c; in genfs_read()
3255 l->next = newc; in genfs_read()
3257 newgenfs->head = newc; in genfs_read()
3259 newc = NULL; in genfs_read()
3266 if (newc) { in genfs_read()
3267 context_destroy(&newc->context[0]); in genfs_read()
3268 context_destroy(&newc->context[1]); in genfs_read()
3269 free(newc->u.name); in genfs_read()
3270 free(newc); in genfs_read()