From: Ilia Alshanetsky Date: Sun, 11 Mar 2007 18:42:19 +0000 (+0000) Subject: malloc() -> pemalloc() X-Git-Tag: php-5.2.2RC1~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f96245f8b4bc34c41542d9fff21a7ee5289cae39;p=php malloc() -> pemalloc() --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index c10d727b69..aedfe5d571 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3895,7 +3895,7 @@ static void _php_imap_parse_address (ADDRESS *addresslist, char **fulladdress, z addresstmp = addresslist; if ((len = _php_imap_address_size(addresstmp))) { - tmpstr = (char *) malloc(len + 1); + tmpstr = (char *) pemalloc(len + 1, 1); tmpstr[0] = '\0'; rfc822_write_address(tmpstr, addresstmp); *fulladdress = tmpstr; @@ -4316,7 +4316,7 @@ static char *php_mail_gets(readfn_t f, void *stream, unsigned long size, GETS_DA } return NULL; } else { - char *buf = malloc(size + 1); + char *buf = pemalloc(size + 1, 1); if (f(stream, size, buf)) { buf[size] = '\0';