Browse Source

MFH: A leak is better(?) then a crash.

PHP-5.1
Ilia Alshanetsky 22 years ago
parent
commit
a7bc501d90
  1. 2
      ext/imap/php_imap.c

2
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);
}
/* }}} */

Loading…
Cancel
Save