From: Kurt Zeilenga Date: Sun, 16 Mar 2003 23:52:44 +0000 (+0000) Subject: SLAP_NVALUES: fix extraneous free bug. X-Git-Tag: NO_SLAP_OP_BLOCKS~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1d245d9de6486236ec880251e12daf1fb9da42f;p=openldap SLAP_NVALUES: fix extraneous free bug. --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 0001b381dc..381646919b 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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; }