From c8d9dc3ac89346a8545a00adfa1ba0ea4e3f73d3 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 29 Dec 2004 21:33:12 +0000 Subject: [PATCH] MFH: Fixed memory leaks. --- ext/imap/php_imap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 43c9ad74e4..f7c70e9025 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3187,10 +3187,14 @@ PHP_FUNCTION(imap_mail_compose) mystring = tempstring; } else { efree(mystring); - RETURN_FALSE; + RETVAL_FALSE; + goto done; } RETVAL_STRING(tempstring, 0); +done: + mail_free_body(&topbod); + mail_free_envelope(&env); } /* }}} */ -- 2.50.1