summaryrefslogtreecommitdiff
path: root/ext/standard/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/mail.c')
-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