Commit b1d245d9 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

SLAP_NVALUES: fix extraneous free bug.

parent e3b1020e
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment