mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9908 slapd-tester: plug LDAP* leak on bind retries
This commit is contained in:
parent
f3ed13fad2
commit
9c1b67fe60
1 changed files with 2 additions and 2 deletions
|
|
@ -522,6 +522,8 @@ retry:;
|
||||||
|
|
||||||
if ( rc != LDAP_SUCCESS ) {
|
if ( rc != LDAP_SUCCESS ) {
|
||||||
tester_ldap_error( ld, "ldap_sasl_bind_s", NULL );
|
tester_ldap_error( ld, "ldap_sasl_bind_s", NULL );
|
||||||
|
ldap_unbind_ext( ld, NULL, NULL );
|
||||||
|
ld = NULL;
|
||||||
switch ( rc ) {
|
switch ( rc ) {
|
||||||
case LDAP_BUSY:
|
case LDAP_BUSY:
|
||||||
case LDAP_UNAVAILABLE:
|
case LDAP_UNAVAILABLE:
|
||||||
|
|
@ -533,8 +535,6 @@ retry:;
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ldap_unbind_ext( ld, NULL, NULL );
|
|
||||||
ld = NULL;
|
|
||||||
if ( !( flags & TESTER_INIT_NOEXIT ))
|
if ( !( flags & TESTER_INIT_NOEXIT ))
|
||||||
exit( EXIT_FAILURE );
|
exit( EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue