if( dbname == NULL ) {
/* not indexed */
+ ber_bvfree( prefix );
return idl;
}
Debug( LDAP_DEBUG_ANY,
"<= presense_candidates db open failed (%s%s)\n",
dbname, LDBM_SUFFIX, 0 );
+ ber_bvfree( prefix );
return idl;
}
rc = key_read( be, db, prefix, &idl );
if( rc != LDAP_SUCCESS ) {
- Debug( LDAP_DEBUG_TRACE, "<= presense_candidates key read failed (%d)\n",
+ Debug( LDAP_DEBUG_TRACE,
+ "<= presense_candidates key read failed (%d)\n",
rc, 0, 0 );
} else if( idl == NULL ) {
- Debug( LDAP_DEBUG_TRACE, "<= presense_candidates NULL\n",
+ Debug( LDAP_DEBUG_TRACE,
+ "<= presense_candidates NULL\n",
0, 0, 0 );
}
}
ldbm_cache_close( be, db );
-
+ ber_bvfree( prefix );
Debug( LDAP_DEBUG_TRACE, "<= presence_candidates %ld\n",
idl ? ID_BLOCK_NIDS(idl) : 0, 0, 0 );
if( dbname == NULL ) {
/* not indexed */
+ ber_bvfree( prefix );
return idl;
}
mr = ava->aa_desc->ad_type->sat_equality;
if( !mr ) {
+ ber_bvfree( prefix );
/* return LDAP_INAPPROPRIATE_MATCHING; */
return idl;
}
if( !mr->smr_filter ) {
+ ber_bvfree( prefix );
return idl;
}
ava->aa_value,
&keys );
+ ber_bvfree( prefix );
+
if( rc != LDAP_SUCCESS ) {
return idl;
}
if( rc != LDAP_SUCCESS ) {
idl_free( idl );
idl = NULL;
- Debug( LDAP_DEBUG_TRACE, "<= equality_candidates key read failed (%d)\n",
+ Debug( LDAP_DEBUG_TRACE,
+ "<= equality_candidates key read failed (%d)\n",
rc, 0, 0 );
break;
}
if( tmp == NULL ) {
idl_free( idl );
idl = NULL;
- Debug( LDAP_DEBUG_TRACE, "<= equality_candidates NULL\n",
+ Debug( LDAP_DEBUG_TRACE,
+ "<= equality_candidates NULL\n",
0, 0, 0 );
break;
}
save = idl;
idl = idl_intersection( be, idl, tmp );
idl_free( save );
+ idl_free( tmp );
if( idl == NULL ) break;
}
if( dbname == NULL ) {
/* not indexed */
+ ber_bvfree( prefix );
return idl;
}
}
if( !mr ) {
+ ber_bvfree( prefix );
/* return LDAP_INAPPROPRIATE_MATCHING; */
return idl;
}
if( !mr->smr_filter ) {
+ ber_bvfree( prefix );
return idl;
}
ava->aa_value,
&keys );
+ ber_bvfree( prefix );
+
if( rc != LDAP_SUCCESS ) {
return idl;
}