diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-12-30 04:39:17 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-12-30 04:39:17 +0000 |
commit | a7bc501d90d964a6e2304e4c9dec9297621f8a88 (patch) | |
tree | 0dd9f78b718af0b0bd5a54846d0ec32124865f90 /ext/imap/php_imap.c | |
parent | 4bef3dde2d21d2e4c17b0bb7db50ca99f76ffb19 (diff) | |
download | php-git-a7bc501d90d964a6e2304e4c9dec9297621f8a88.tar.gz |
MFH: A leak is better(?) then a crash.
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index b94cddd279..ad463f5d4c 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); } /* }}} */ |