]> granicus.if.org Git - php/commit
Fix some leaks in ldap
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 14 Jun 2019 09:11:24 +0000 (11:11 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 14 Jun 2019 09:11:24 +0000 (11:11 +0200)
commit98457b6d60a79db44fe1ac7cd6b100f8cb6cf940
tree0946577171299b105c38eb047aa47a4778122e11
parent5d2fe48785b6d24102ff53e78631cba7f2aefbef
Fix some leaks in ldap

The result of zval_get_string() needs to be released. In some places
where it is inconvenient to manage, I went back to convert_to_string.
It is safe in those places due to existing array separations.

Also fix a preexisting leak when getting controls, the previous
value was not destroyed.
ext/ldap/ldap.c