Lines Matching refs:mfn
299 - if ((mfn = strdup(fn)) == NULL) {
313 + if ((mfn = estrdup(fn)) == NULL) {
321 - free(mfn);
322 + efree(mfn);
330 - free(mfn);
331 + efree(mfn);
413 - char **filearr = NULL, *mfn;
444 + char mfn[MAXPATHLEN];
454 - if (asprintf(&mfn, "%s/%s", fn, d->d_name) < 0) {
456 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
465 - if (stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
466 - free(mfn);
467 + if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
480 - free(mfn);
488 - filearr[files++] = mfn;
489 + filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen);