mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
don't leak in case of error
This commit is contained in:
parent
50a275f15a
commit
6df2df130b
@ -113,13 +113,14 @@ ldap_refresh(
|
||||
rc = ber_flatten2( ber, &bv, 0 );
|
||||
|
||||
if ( rc < 0 ) {
|
||||
ld->ld_errno = LDAP_ENCODING_ERROR;
|
||||
return ld->ld_errno;
|
||||
rc = ld->ld_errno = LDAP_ENCODING_ERROR;
|
||||
goto done;
|
||||
}
|
||||
|
||||
rc = ldap_extended_operation( ld, LDAP_EXOP_REFRESH, &bv,
|
||||
sctrls, cctrls, msgidp );
|
||||
|
||||
done:;
|
||||
ber_free( ber, 1 );
|
||||
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user