From: Ilia Alshanetsky Date: Wed, 3 Nov 2004 22:17:45 +0000 (+0000) Subject: emalloc() failures are handled by zend engine. X-Git-Tag: RELEASE_0_2~744 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a9815a1237013110e74dfd26ee36825d077b172;p=php emalloc() failures are handled by zend engine. --- diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c index bf7f63ddfc..9d6d1e63be 100644 --- a/ext/standard/iptc.c +++ b/ext/standard/iptc.c @@ -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) {