mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Fixed bug #26847 (memory leak in mail() when to/subject contain only spaces)
This commit is contained in:
parent
47c81de40f
commit
2736c55e3e
1 changed files with 2 additions and 2 deletions
|
@ -160,10 +160,10 @@ PHP_FUNCTION(mail)
|
|||
if (extra_cmd) {
|
||||
efree (extra_cmd);
|
||||
}
|
||||
if (to_len > 0) {
|
||||
if (to_r != to) {
|
||||
efree(to_r);
|
||||
}
|
||||
if (subject_len > 0) {
|
||||
if (subject_r != subject) {
|
||||
efree(subject_r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue