From 4c513d05f713a97b7028708ceb8f1afa981bfc4f Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 25 Jul 2005 04:39:58 +0000 Subject: [PATCH] plug leak --- servers/slapd/slapi/slapi_ops.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index 8f3a3433d0..e780979b44 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -177,7 +177,7 @@ slapi_int_get_ctrls( Slapi_PBlock *pb ) } void -slapi_int_connection_init_pb( Slapi_PBlock *pb, ber_tag_t OpType ) +slapi_int_connection_init_pb( Slapi_PBlock *pb, ber_tag_t tag ) { Connection *conn; Operation *op; @@ -265,7 +265,7 @@ slapi_int_connection_init_pb( Slapi_PBlock *pb, ber_tag_t OpType ) conn->c_send_search_reference = slap_send_search_reference; /* operation object */ - op->o_tag = OpType; + op->o_tag = tag; op->o_protocol = LDAP_VERSION3; BER_BVZERO( &op->o_authmech ); op->o_time = slap_get_time(); @@ -354,6 +354,10 @@ slapi_int_connection_done_pb( Slapi_PBlock *pb ) break; } + slapi_ch_free_string( &conn->c_authmech.bv_val ); + slapi_ch_free_string( &conn->c_dn.bv_val ); + slapi_ch_free_string( &conn->c_ndn.bv_val ); + if ( conn->c_sb != NULL ) { ber_sockbuf_free( conn->c_sb ); } -- 2.39.5