X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fcancel.c;h=ce0b1fdbc06c5bbf7d9d994b34df8e8d56d25b32;hb=6044e46ec7af21658829edde47c4c9c904093df3;hp=dd4c79730cd86f505eb0cbaf9694686dff4c5cef;hpb=d918bc9983c454656ee90aaf34d2a9bb80b51f79;p=openldap diff --git a/servers/slapd/cancel.c b/servers/slapd/cancel.c index dd4c79730c..ce0b1fdbc0 100644 --- a/servers/slapd/cancel.c +++ b/servers/slapd/cancel.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -70,7 +70,7 @@ int cancel_extop( Operation *op, SlapReply *rs ) LDAP_STAILQ_REMOVE( &op->o_conn->c_pending_ops, o, Operation, o_next ); LDAP_STAILQ_NEXT(o, o_next) = NULL; op->o_conn->c_n_ops_pending--; - slap_op_free( o ); + slap_op_free( o, NULL ); ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex ); return LDAP_SUCCESS; }