summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;