Home
last modified time | relevance | path

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

/php-src/ext/fileinfo/libmagic/
H A Dcompress.c274 unsigned char *newbuf = NULL; in file_zmagic() local
313 efree(newbuf); in file_zmagic()
315 (ms->flags & MAGIC_NO_COMPRESS_FORK), buf, &newbuf, &nsz); in file_zmagic()
317 (char *)newbuf, nsz); in file_zmagic()
323 prv = format_decompression_error(ms, i, newbuf); in file_zmagic()
325 prv = file_buffer(ms, NULL, NULL, name, newbuf, in file_zmagic()
375 if (newbuf) in file_zmagic()
376 efree(newbuf); in file_zmagic()
/php-src/sapi/fpm/fpm/
H A Dfpm_conf.c1639 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-src/ext/fileinfo/
H A Dlibmagic.patch1249 - free(newbuf);
1250 + efree(newbuf);
1252 (ms->flags & MAGIC_NO_COMPRESS_FORK), buf, &newbuf, &nsz);
1256 prv = format_decompression_error(ms, i, newbuf);
1258 - prv = file_buffer(ms, -1, NULL, name, newbuf,
1259 + prv = file_buffer(ms, NULL, NULL, name, newbuf,
1289 - free(newbuf);
1290 + if (newbuf)
1291 + efree(newbuf);

Completed in 23 milliseconds