Home
last modified time | relevance | path

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

/PHP-8.1/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.1/sapi/fpm/fpm/
H A Dfpm_conf.c1579 char *buf = NULL, *newbuf = NULL; in fpm_conf_load_ini_file() local
1612 newbuf = (char*) realloc(buf, sizeof(char) * (bufsize + 2)); in fpm_conf_load_ini_file()
1613 if (newbuf == NULL) { in fpm_conf_load_ini_file()
1619 buf = newbuf; in fpm_conf_load_ini_file()
/PHP-8.1/ext/fileinfo/
H A Dlibmagic.patch1347 prv = format_decompression_error(ms, i, newbuf);
1349 - prv = file_buffer(ms, -1, NULL, name, newbuf, nsz);
1350 + prv = file_buffer(ms, NULL, NULL, name, newbuf, nsz);
1379 - free(newbuf);
1380 + if (newbuf)
1381 + efree(newbuf);

Completed in 22 milliseconds