]> granicus.if.org Git - php/commit
Fix #78943: mail() may release string with refcount==1 twice
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 10 Dec 2019 17:43:01 +0000 (18:43 +0100)
committerStanislav Malyshev <stas@php.net>
Sun, 15 Dec 2019 21:13:30 +0000 (13:13 -0800)
commit518a160b65fe1c535dc7e78972ba7428c2a4e197
treecf21f57b4ebd55237b47b3d8b2ee42687abf77be
parent621598eaa8063a9e76447e07f6f3c30a8baca1e0
Fix #78943: mail() may release string with refcount==1 twice

Since we need `headers_lc` as well as `headers_trim` in the following,
we do not release the former even if they are the same string, to avoid
complicating the release logic even more.

A new test case is not necessary, since we already have
mail_basic_alt2-win32.phpt and others.
win32/sendmail.c