Fixed bug #26847 (memory leak in mail() when to/subject contain only spaces)

This commit is contained in:
Ilia Alshanetsky 2004-01-09 01:35:44 +00:00
parent 47c81de40f
commit 2736c55e3e

View file

@ -160,10 +160,10 @@ PHP_FUNCTION(mail)
if (extra_cmd) { if (extra_cmd) {
efree (extra_cmd); efree (extra_cmd);
} }
if (to_len > 0) { if (to_r != to) {
efree(to_r); efree(to_r);
} }
if (subject_len > 0) { if (subject_r != subject) {
efree(subject_r); efree(subject_r);
} }
} }