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

index b94cddd2798b18b400c649c2d6d461cc9f2bbc26..ad463f5d4c7567026dac1ad4a8abb29e4f5266c6 100644 (file)
@@ -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);
 }
 /* }}} */