Skip to content

Commit e2609a3

Browse files
committed
fix leak
1 parent c73bcbe commit e2609a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/ldap/ldap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ PHP_FUNCTION(ldap_connect)
367367
int urllen = hostlen + sizeof( "ldap://:65535" );
368368

369369
if (port <= 0 || port > 65535) {
370+
efree(ld);
370371
php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid port number: %ld", port);
371372
RETURN_FALSE;
372373
}

0 commit comments

Comments
 (0)