Searched refs:filearr (Results 1 – 2 of 2) sorted by relevance
/php-src/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 1459 char **filearr = NULL; in apprentice_load() local 1508 mlen = maxfiles * sizeof(*filearr); in apprentice_load() 1509 if ((filearr = CAST(char **, in apprentice_load() 1510 erealloc(filearr, mlen))) == NULL) { in apprentice_load() 1517 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load() 1520 if (filearr) { in apprentice_load() 1521 qsort(filearr, files, sizeof(*filearr), cmpstrp); in apprentice_load() 1523 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load() 1524 efree(filearr[i]); in apprentice_load() 1526 efree(filearr); in apprentice_load()
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 365 + char **filearr = NULL; 436 - filearr = nfilearr; 438 - filearr[files++] = mfn; 443 if (filearr) { 444 qsort(filearr, files, sizeof(*filearr), cmpstrp); 447 - free(filearr[i]); 448 + efree(filearr[i]); 450 - free(filearr); 451 - filearr = NULL; 452 + efree(filearr); [all …]
|
Completed in 21 milliseconds