i = 0;
while ( attrs && attrs[i] ) {
if ( *attrs[i] == '@' ) {
+ ch_free( attrs[i] );
for ( j = i; attrs[j]; j++ ) {
- if ( j == i )
- ch_free( attrs[i] );
attrs[j] = attrs[j+1];
}
} else {
j = i + 1;
while ( attrs && attrs[j] ) {
if ( !strcmp( attrs[i], attrs[j] )) {
+ ch_free( attrs[j] );
for ( k = j; attrs && attrs[k]; k++ ) {
- if ( k == j )
- ch_free( attrs[j] );
attrs[k] = attrs[k+1];
}
} else {
"csn=%s,rid=%03d", csn->bv_val, rid );
}
}
- ber_str2bv( cookiestr, strlen(cookiestr), 1, cookie );
+ ber_str2bv_x( cookiestr, strlen(cookiestr), 1, cookie,
+ op ? op->o_tmpmemctx : NULL );
}
void
j = 0;
while ( exattrs[j] != NULL ) {
if ( !strcmp( exattrs[j], sync_descs[i]->ad_cname.bv_val )) {
+ ch_free( exattrs[j] );
for ( k = j; exattrs[k] != NULL; k++ ) {
- if ( k == j )
- ch_free( exattrs[k] );
exattrs[k] = exattrs[k+1];
}
} else {
while ( oc->soc_required[k] ) {
if ( !strcmp( exattrs[i],
oc->soc_required[k]->sat_cname.bv_val )) {
+ ch_free( exattrs[i] );
for ( l = i; exattrs[l]; l++ ) {
- if ( l == i )
- ch_free( exattrs[i] );
exattrs[l] = exattrs[l+1];
}
} else {