diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-12-29 21:33:03 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-12-29 21:33:03 +0000 |
commit | ed64463bdbbec355462826188074c6209cde488e (patch) | |
tree | 7c88282fa1b7f877f386dd348d0284c9fd4da097 /ext/imap | |
parent | 742f8c2502428b03fc96b72d76897528a3f5a45e (diff) | |
download | php-git-ed64463bdbbec355462826188074c6209cde488e.tar.gz |
Fixed memory leaks.
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/php_imap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 3bf55006a0..cb591a7b2d 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3188,10 +3188,14 @@ PHP_FUNCTION(imap_mail_compose) mystring=tempstring; } else { efree(mystring); - RETURN_FALSE; + RETVAL_FALSE; + goto done; } - RETVAL_STRINGL(tempstring, 0); + RETVAL_STRINGL(tempstring, 0); +done: + mail_free_body(&topbod); + mail_free_envelope(&env); } /* }}} */ |