Home
last modified time | relevance | path

Searched refs:marray (Results 1 – 2 of 2) sorted by relevance

/PHP-5.3/ext/fileinfo/libmagic/
H A Dapprentice.c754 struct magic_entry *marray; local
767 marray = ecalloc(maxmagic, sizeof(*marray));
835 set_test_type(marray[starttest].mp, marray[i].mp);
839 marray[i].mp->mimetype,
841 marray[i].mp->desc[0] ? marray[i].mp->desc :
857 qsort(marray, marraycount, sizeof(*marray), apprentice_sort);
870 ms->line = marray[i].mp->lineno;
891 if (marray[i].mp) {
892 efree(marray[i].mp);
895 if (marray) {
[all …]
/PHP-5.3/ext/fileinfo/
H A Dlibmagic.patch319 struct magic_entry *marray;
337 - sizeof(*marray)))) == NULL) {
342 + marray = ecalloc(maxmagic, sizeof(*marray));
407 mentrycount += marray[i].cont_count;
420 mentrycount += marray[i].cont_count;
424 - free(marray[i].mp);
425 - free(marray);
427 + if (marray[i].mp) {
428 + efree(marray[i].mp);
431 + if (marray) {
[all …]

Completed in 19 milliseconds