emalloc() failures are handled by zend engine.

This commit is contained in:
Ilia Alshanetsky 2004-11-03 22:17:45 +00:00
parent fcbd8c4f99
commit 9a9815a123

View File

@ -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) {