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

index f7c70e9025edfdb3f4f478f2b8fffb039ef3e16c..bfc557ebfac3bce11acf07d4c1221f43d5baba0c 100644 (file)
@@ -3193,7 +3193,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);
 }
 /* }}} */