{
BerElementBuffer berbuf;
BerElement *ber = (BerElement *) &berbuf;
- Attribute *a, *aa;
+ Attribute *a, *aa = NULL;
int i, j, rc=-1, bytes;
char *edn;
int userattrs;
if ( op->o_res_ber == NULL ) ber_free_buf( ber );
send_ldap_error( op, rs, LDAP_OTHER,
"encoding description error" );
- attrs_free( aa );
goto error_return;
}
if ( op->o_res_ber == NULL ) ber_free_buf( ber );
send_ldap_error( op, rs, LDAP_OTHER,
"encoding values error" );
- attrs_free( aa );
goto error_return;
}
}
if ( op->o_res_ber == NULL ) ber_free_buf( ber );
send_ldap_error( op, rs, LDAP_OTHER, "encode end error" );
- attrs_free( aa );
goto error_return;
}
}
e_flags = NULL;
}
- attrs_free( aa );
rc = ber_printf( ber, /*{{*/ "}N}" );
if( rc != -1 ) {
slap_sl_free( e_flags, op->o_tmpmemctx );
}
+ if ( aa ) {
+ attrs_free( aa );
+ }
+
if ( op->o_callback ) {
slap_callback *sc = op->o_callback,
*sc_next = op->o_callback;