efree(RPath);
}
if (headers) {
- zend_string_free(headers_trim);
- zend_string_free(headers_lc);
+ zend_string_release(headers_trim);
+ zend_string_release(headers_lc);
}
/* 128 is safe here, the specifier in snprintf isn't longer than that */
- if (NULL == (*error_message = ecalloc(1, HOST_NAME_LEN + 128))) {
- return FAILURE;
- }
+ *error_message = ecalloc(1, HOST_NAME_LEN + 128);
snprintf(*error_message, HOST_NAME_LEN + 128,
"Failed to connect to mailserver at \"%s\" port %d, verify your \"SMTP\" "
"and \"smtp_port\" setting in php.ini or use ini_set()",