Lines Matching refs:newc
2974 ocontext_t *l, *c, *newc = NULL; in genfs_read() local
3026 newc = calloc(1, sizeof(ocontext_t)); in genfs_read()
3027 if (!newc) { in genfs_read()
3036 newc->u.name = malloc(len + 1); in genfs_read()
3037 if (!newc->u.name) { in genfs_read()
3040 rc = next_entry(newc->u.name, fp, len); in genfs_read()
3043 newc->u.name[len] = 0; in genfs_read()
3047 newc->v.sclass = le32_to_cpu(buf[0]); in genfs_read()
3048 if (context_read_and_validate(&newc->context[0], p, fp)) in genfs_read()
3052 if (!strcmp(newc->u.name, c->u.name) && in genfs_read()
3053 (!c->v.sclass || !newc->v.sclass || in genfs_read()
3054 newc->v.sclass == c->v.sclass)) { in genfs_read()
3060 len = strlen(newc->u.name); in genfs_read()
3065 newc->next = c; in genfs_read()
3067 l->next = newc; in genfs_read()
3069 newgenfs->head = newc; in genfs_read()
3071 newc = NULL; in genfs_read()
3078 if (newc) { in genfs_read()
3079 context_destroy(&newc->context[0]); in genfs_read()
3080 context_destroy(&newc->context[1]); in genfs_read()
3081 free(newc->u.name); in genfs_read()
3082 free(newc); in genfs_read()