From b1d245d9de6486236ec880251e12daf1fb9da42f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 16 Mar 2003 23:52:44 +0000 Subject: [PATCH] SLAP_NVALUES: fix extraneous free bug. --- servers/slapd/schema_init.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5