summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-03-16 15:42:34 +0000
committerMarkus Fischer <mfischer@php.net>2002-03-16 15:42:34 +0000
commit3c52ef676f85bdc1f48f64e1954e565e122253e8 (patch)
tree0642d8d8890b72d43bb1cd17ab6da3eb2d4000b1
parent80f52730ff0e3050d973317ce2cda6ff71372fa5 (diff)
downloadphp-git-3c52ef676f85bdc1f48f64e1954e565e122253e8.tar.gz
- Don't forget to close the handle.
-rw-r--r--ext/standard/mail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c
index 68e10edc1e..24127ddbf3 100644
--- a/ext/standard/mail.c
+++ b/ext/standard/mail.c
@@ -156,6 +156,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
if (EACCES == errno) {
php_error(E_WARNING, "%s() permission denied; unable to execute shell to run mail delivery binary",
get_active_function_name(TSRMLS_C));
+ pclose(sendmail);
return 0;
}
#endif