mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#9908 slapd-tester: plug LDAP* leak on bind retries
This commit is contained in:
parent
f3ed13fad2
commit
9c1b67fe60
@ -522,6 +522,8 @@ retry:;
|
||||
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
tester_ldap_error( ld, "ldap_sasl_bind_s", NULL );
|
||||
ldap_unbind_ext( ld, NULL, NULL );
|
||||
ld = NULL;
|
||||
switch ( rc ) {
|
||||
case LDAP_BUSY:
|
||||
case LDAP_UNAVAILABLE:
|
||||
@ -533,8 +535,6 @@ retry:;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
ldap_unbind_ext( ld, NULL, NULL );
|
||||
ld = NULL;
|
||||
if ( !( flags & TESTER_INIT_NOEXIT ))
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user