mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
use correct free api
This commit is contained in:
parent
cddde315c7
commit
2f79fd8d43
1 changed files with 2 additions and 2 deletions
|
@ -292,7 +292,7 @@ PHPAPI int TSendMail(char *host, int *error, char **error_message,
|
|||
efree(RPath);
|
||||
}
|
||||
if (headers) {
|
||||
efree(headers_lc);
|
||||
zend_string_free(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))) {
|
||||
|
@ -310,7 +310,7 @@ PHPAPI int TSendMail(char *host, int *error, char **error_message,
|
|||
efree(RPath);
|
||||
}
|
||||
if (headers) {
|
||||
efree(headers_lc);
|
||||
zend_string_free(headers_lc);
|
||||
}
|
||||
if (ret != SUCCESS) {
|
||||
*error = ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue