From: Ilia Alshanetsky Date: Thu, 30 Dec 2004 04:38:40 +0000 (+0000) Subject: A leak is better(?) then a crash. X-Git-Tag: php-4.3.11RC1~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6994812bdc9feb7767c54452b4a32cdf14ecd4b;p=php A leak is better(?) then a crash. --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 2a1edb3108..f68cc260f7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3164,7 +3164,9 @@ PHP_FUNCTION(imap_mail_compose) RETVAL_STRING(tempstring, 0); done: +#if ilia_0 /* this should be done, otherwise we leak memory. Unfortunately this seems to cause a crash in some cases */ mail_free_body(&topbod); +#endif mail_free_envelope(&env); } /* }}} */