*/
#include "portable.h"
+#include "slapi_common.h"
#include <stdio.h>
#include <ac/socket.h>
#include "slap.h"
+#include "slapi.h"
void
ldap_controls_free( op->o_ctrls );
}
- ldap_pvt_thread_mutex_destroy( &op->o_abandonmutex );
+#ifdef LDAP_CLIENT_UPDATE
+ if ( op->o_clientupdate_state.bv_val != NULL ) {
+ free( op->o_clientupdate_state.bv_val );
+ }
+#endif /* LDAP_CLIENT_UPDATE */
+
+#if defined( LDAP_SLAPI )
+ if ( op->o_pb != NULL ) {
+ slapi_pblock_destroy( (Slapi_PBlock *)op->o_pb );
+ }
+#endif /* defined( LDAP_SLAPI ) */
free( (char *) op );
}
op = (Operation *) ch_calloc( 1, sizeof(Operation) );
- ldap_pvt_thread_mutex_init( &op->o_abandonmutex );
-
op->o_ber = ber;
op->o_msgid = msgid;
op->o_tag = tag;
op->o_time = slap_get_time();
op->o_opid = id;
+#if defined( LDAP_SLAPI )
+ op->o_pb = slapi_pblock_new();
+#endif /* defined( LDAP_SLAPI ) */
+
return( op );
}