1 /* operation.c - routines to deal with pending ldap operations */
4 * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 #include <ac/string.h>
13 #include <ac/socket.h>
19 slap_op_free( Operation *op )
21 assert( LDAP_STAILQ_NEXT(op, o_next) == NULL );
23 if ( op->o_ber != NULL ) {
24 ber_free( op->o_ber, 1 );
26 if ( op->o_ctrls != NULL ) {
27 ldap_controls_free( op->o_ctrls );
43 op = (Operation *) ch_calloc( 1, sizeof(Operation) );
49 op->o_time = slap_get_time();