Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  fix leak
This commit is contained in:
Anatol Belski 2016-08-29 18:08:17 +02:00
commit 78c15e2744

View File

@ -419,6 +419,7 @@ PHP_FUNCTION(ldap_connect)
int urllen = hostlen + sizeof( "ldap://:65535" );
if (port <= 0 || port > 65535) {
efree(ld);
php_error_docref(NULL, E_WARNING, "invalid port number: " ZEND_LONG_FMT, port);
RETURN_FALSE;
}