From a7bc501d90d964a6e2304e4c9dec9297621f8a88 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 30 Dec 2004 04:39:17 +0000 Subject: [PATCH] MFH: A leak is better(?) then a crash. --- ext/imap/php_imap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index b94cddd2798..ad463f5d4c7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3194,7 +3194,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); } /* }}} */