Lines Matching refs:mlen
421 size_t mlen;
424 mlen = maxfiles * sizeof(*filearr);
426 - realloc(filearr, mlen))) == NULL) {
428 + erealloc(filearr, mlen))) == NULL) {
429 file_oomem(ms, mlen);
886 mlen = ulen * 6;
887 - if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) {
888 + if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
889 file_oomem(ms, mlen);
1353 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
1354 - *ubuf = CAST(file_unichar_t *, calloc(CAST(size_t, 1), mlen));
1355 + *ubuf = CAST(file_unichar_t *, ecalloc(CAST(size_t, 1), mlen));
1357 file_oomem(ms, mlen);
1362 mlen = (nbytes + 1) * sizeof(nbuf[0]);
1363 - if ((nbuf = CAST(unsigned char *, malloc(mlen))) == NULL) {
1364 + if ((nbuf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
1365 file_oomem(ms, mlen);