]> granicus.if.org Git - php/commitdiff
A leak is better(?) then a crash.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 30 Dec 2004 04:38:40 +0000 (04:38 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 30 Dec 2004 04:38:40 +0000 (04:38 +0000)
ext/imap/php_imap.c

index 2a1edb3108e5523a9494c748c1f25b35ea352b98..f68cc260f7e8dad6c23c266a1d4a5be16782c5b9 100644 (file)
@@ -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);
 }
 /* }}} */