mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
emalloc() failures are handled by zend engine.
This commit is contained in:
parent
fcbd8c4f99
commit
9a9815a123
@ -227,11 +227,6 @@ PHP_FUNCTION(iptcembed)
|
||||
fstat(fileno(fp), &sb);
|
||||
|
||||
poi = spoolbuf = emalloc(len + sizeof(psheader) + sb.st_size + 1024);
|
||||
|
||||
if (! spoolbuf) {
|
||||
fclose(fp);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if (php_iptc_get1(fp, spool, poi?&poi:0 TSRMLS_CC) != 0xFF) {
|
||||
|
Loading…
Reference in New Issue
Block a user