summaryrefslogtreecommitdiff
path: root/win32/sendmail.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-03-03 18:09:28 +0100
committerAnatol Belski <ab@php.net>2015-03-03 18:09:28 +0100
commit2f79fd8d43967aa3fab7bbbc8a75e2ae13d88445 (patch)
tree2532f46a3613fe1df887fea18792f5371be056e8 /win32/sendmail.c
parentcddde315c7e915ec9b428cadc799d9705b4d08c9 (diff)
downloadphp-git-2f79fd8d43967aa3fab7bbbc8a75e2ae13d88445.tar.gz
use correct free api
Diffstat (limited to 'win32/sendmail.c')
-rw-r--r--win32/sendmail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index e6120f4f69..6133e76c99 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -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;