From 540878020a169bb27d36230bb83074e4e6fa57ae Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 25 Jan 2007 10:01:51 +0000 Subject: [PATCH] Fix call to connection_fake_init, plug leak --- servers/slapd/back-monitor/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5