Lines Matching refs:mlist
115 struct mlist *ml;
118 - if ((ml = CAST(struct mlist *, malloc(sizeof(*ml)))) == NULL)
119 + if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL)
126 mlist_free(ms->mlist[i]);
215 private struct mlist *
218 struct mlist *mlist;
219 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) {
220 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) {
223 mlist->next = mlist->prev = mlist;
234 mlist_free_one(mlist);
244 - struct mlist *ml;
255 - mlist_free(ms->mlist[i]);
256 - if ((ms->mlist[i] = mlist_alloc()) == NULL) {
257 - file_oomem(ms, sizeof(*ms->mlist[i]));
268 - if (add_mlist(ms->mlist[j], map, j) == -1) {
302 + mlist_free(ms->mlist[i]);
303 + if ((ms->mlist[i] = mlist_alloc()) == NULL) {
304 + file_oomem(ms, sizeof(*ms->mlist[i]));
316 mlist_free(ms->mlist[j]);
317 ms->mlist[j] = NULL;