]> granicus.if.org Git - php/commitdiff
malloc() -> pemalloc()
authorIlia Alshanetsky <iliaa@php.net>
Sun, 11 Mar 2007 18:42:19 +0000 (18:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 11 Mar 2007 18:42:19 +0000 (18:42 +0000)
ext/imap/php_imap.c

index c10d727b6924a4ff05d85afbac14dec78425ae44..aedfe5d57132a38c300325f3e61042de7dac8846 100644 (file)
@@ -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';