mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
SLAP_NVALUES: fix extraneous free bug.
This commit is contained in:
parent
e3b1020e75
commit
b1d245d9de
@ -1888,7 +1888,9 @@ caseExactIgnoreSubstringsFilter
|
||||
if ( sa->sa_final.bv_val ) free( sa->sa_final.bv_val );
|
||||
if ( sa->sa_any ) ber_bvarray_free( sa->sa_any );
|
||||
if ( sa->sa_initial.bv_val ) free( sa->sa_initial.bv_val );
|
||||
#ifndef SLAP_NVALUES
|
||||
ch_free( sa );
|
||||
#endif
|
||||
*keysp = NULL;
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
@ -2003,7 +2005,9 @@ caseExactIgnoreSubstringsFilter
|
||||
if ( sa->sa_final.bv_val ) free( sa->sa_final.bv_val );
|
||||
if ( sa->sa_any ) ber_bvarray_free( sa->sa_any );
|
||||
if ( sa->sa_initial.bv_val ) free( sa->sa_initial.bv_val );
|
||||
#ifndef SLAP_NVALUES
|
||||
ch_free( sa );
|
||||
#endif
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user