From: Howard Chu Date: Thu, 25 Jan 2007 10:01:51 +0000 (+0000) Subject: Fix call to connection_fake_init, plug leak X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=540878020a169bb27d36230bb83074e4e6fa57ae;p=openldap Fix call to connection_fake_init, plug leak --- diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index ed29b9de61..310770fc44 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -706,6 +706,7 @@ monitor_search2ndn( Connection conn = { 0 }; OperationBuffer opbuf; Operation *op; + void *thrctx; SlapReply rs = { 0 }; slap_callback cb = { NULL, monitor_search2ndn_cb, NULL, NULL }; int rc; @@ -717,7 +718,8 @@ monitor_search2ndn( } op = (Operation *) &opbuf; - connection_fake_init( &conn, op, &conn ); + thrctx = ldap_pvt_thread_pool_context(); + connection_fake_init( &conn, op, thrctx ); op->o_tag = LDAP_REQ_SEARCH;