Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 3 of 3) sorted by relevance

/PHP-8.0/ext/fileinfo/libmagic/
H A Dcompress.c250 unsigned char *newbuf = NULL; in file_zmagic() local
289 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic()
291 (char *)newbuf, nsz); in file_zmagic()
297 prv = format_decompression_error(ms, i, newbuf); in file_zmagic()
299 prv = file_buffer(ms, NULL, NULL, name, newbuf, nsz); in file_zmagic()
347 if (newbuf) in file_zmagic()
348 efree(newbuf); in file_zmagic()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_conf.c1571 char *buf = NULL, *newbuf = NULL; in fpm_conf_load_ini_file() local
1604 newbuf = (char*) realloc(buf, sizeof(char) * (bufsize + 2)); in fpm_conf_load_ini_file()
1605 if (newbuf == NULL) { in fpm_conf_load_ini_file()
1611 buf = newbuf; in fpm_conf_load_ini_file()
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch1384 prv = format_decompression_error(ms, i, newbuf);
1386 - prv = file_buffer(ms, -1, NULL, name, newbuf, nsz);
1387 + prv = file_buffer(ms, NULL, NULL, name, newbuf, nsz);
1416 - free(newbuf);
1417 + if (newbuf)
1418 + efree(newbuf);

Completed in 16 milliseconds