Searched refs:newbuf (Results 1 – 3 of 3) sorted by relevance
/PHP-8.3/ext/fileinfo/libmagic/ |
H A D | compress.c | 254 unsigned char *newbuf = NULL; in file_zmagic() local 293 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic() 295 (char *)newbuf, nsz); in file_zmagic() 301 prv = format_decompression_error(ms, i, newbuf); in file_zmagic() 303 prv = file_buffer(ms, NULL, NULL, name, newbuf, nsz); in file_zmagic() 351 if (newbuf) in file_zmagic() 352 efree(newbuf); in file_zmagic()
|
/PHP-8.3/sapi/fpm/fpm/ |
H A D | fpm_conf.c | 1639 char *buf = NULL, *newbuf = NULL; in fpm_conf_load_ini_file() local 1672 newbuf = (char*) realloc(buf, sizeof(char) * (bufsize + 2)); in fpm_conf_load_ini_file() 1673 if (newbuf == NULL) { in fpm_conf_load_ini_file() 1679 buf = newbuf; in fpm_conf_load_ini_file()
|
/PHP-8.3/ext/fileinfo/ |
H A D | libmagic.patch | 1245 prv = format_decompression_error(ms, i, newbuf); 1247 - prv = file_buffer(ms, -1, NULL, name, newbuf, nsz); 1248 + prv = file_buffer(ms, NULL, NULL, name, newbuf, nsz); 1277 - free(newbuf); 1278 + if (newbuf) 1279 + efree(newbuf);
|
Completed in 27 milliseconds