mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
SLAP_NVALUES: fix extraneous free bug.
This commit is contained in:
parent
e3b1020e75
commit
b1d245d9de
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue