SLAP_NVALUES: fix extraneous free bug.

This commit is contained in:
Kurt Zeilenga 2003-03-16 23:52:44 +00:00
parent e3b1020e75
commit b1d245d9de

View File

@ -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;
}