Lines Matching refs:q
102 struct circleq_entry *q; in yp_malloc_qent() local
104 q = (struct circleq_entry *)malloc(sizeof(struct circleq_entry)); in yp_malloc_qent()
105 if (q == NULL) { in yp_malloc_qent()
109 bzero((char *)q, sizeof(struct circleq_entry)); in yp_malloc_qent()
110 q->dbptr = (struct dbent *)malloc(sizeof(struct dbent)); in yp_malloc_qent()
111 if (q->dbptr == NULL) { in yp_malloc_qent()
113 free(q); in yp_malloc_qent()
116 bzero((char *)q->dbptr, sizeof(struct dbent)); in yp_malloc_qent()
118 return(q); in yp_malloc_qent()
126 yp_free_qent(struct circleq_entry *q) in yp_free_qent() argument
134 if (q->dbptr->dbp) { in yp_free_qent()
135 q->dbptr->dbp->close(q->dbptr->dbp); in yp_free_qent()
136 q->dbptr->dbp = NULL; in yp_free_qent()
141 free(q->dbptr->name); in yp_free_qent()
146 free(q->dbptr); in yp_free_qent()
147 q->dbptr = NULL; in yp_free_qent()
152 free(q); in yp_free_qent()
153 q = NULL; in yp_free_qent()