com php-src: use correct free api: win32/sendmail.c
| From: | Anatol Belski | Date: | Tue, 03 Mar 2015 17:09:28 +0000 |
| Subject: | com php-src: use correct free api: win32/sendmail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85182@lists.php.net to get a copy of this message | ||
Commit: 2f79fd8d43967aa3fab7bbbc8a75e2ae13d88445
Author: Anatol Belski <ab@php.net> Tue, 3 Mar 2015 18:09:28 +0100
Parents: cddde315c7e915ec9b428cadc799d9705b4d08c9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2f79fd8d43967aa3fab7bbbc8a75e2ae13d88445
Log:
use correct free api
Changed paths:
M win32/sendmail.c
Diff:
diff --git a/win32/sendmail.c b/win32/sendmail.c
index e6120f4..6133e76 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;