Commit 8b6e1db2 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

SLAP_NVALUES: remove all the extra frees

parent b1d245d9
......@@ -1885,10 +1885,10 @@ caseExactIgnoreSubstringsFilter
}
if( nkeys == 0 ) {
#ifndef SLAP_NVALUES
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;
......@@ -2002,10 +2002,11 @@ caseExactIgnoreSubstringsFilter
ch_free( keys );
*keysp = NULL;
}
#ifndef SLAP_NVALUES
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
......
......@@ -36,7 +36,7 @@
#include "ldap_queue.h"
#ifdef LDAP_DEVEL
/* #define SLAP_NVALUES 1 */
#define SLAP_NVALUES 1
#define SLAP_EXTENDED_SCHEMA 1
#endif
......
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