summaryrefslogtreecommitdiff
path: root/win32/sendmail.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-02-27 10:42:20 +0100
committerAnatol Belski <ab@php.net>2015-02-27 10:42:20 +0100
commit30830bcefd080cf58231aa195418a4223497ea91 (patch)
tree025068001955f3647988a8309056d0df27950948 /win32/sendmail.c
parent8f5676f73e57345b61447a27bc493b1b8f95ab5b (diff)
downloadphp-git-30830bcefd080cf58231aa195418a4223497ea91.tar.gz
Fixed bug #69115 crash in mail
There were two issues - php_pcre_replace could be used directly and sbject_str could be NULL - the Windows sendmail variant was freeing something passed from the outside
Diffstat (limited to 'win32/sendmail.c')
-rw-r--r--win32/sendmail.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index fd7424dda7..9035c7d37e 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -292,7 +292,6 @@ PHPAPI int TSendMail(char *host, int *error, char **error_message,
efree(RPath);
}
if (headers) {
- efree(headers);
efree(headers_lc);
}
/* 128 is safe here, the specifier in snprintf isn't longer than that */