From c71e7b399ae90ab6e7e082520fc97bcd6f8da2fe Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 23 Nov 2008 20:43:39 +0000 Subject: [PATCH] ITS#5827, release syncop after mod op completes --- servers/slapd/overlays/syncprov.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 835ed240d7..64c5ffc243 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1259,6 +1259,12 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) /* send DELETE */ syncprov_qresp( opc, ss, LDAP_SYNC_DELETE ); } + if ( !saveit && found ) { + /* Decrement s_inuse, was incremented when called + * with saveit == TRUE + */ + syncprov_free_syncop( ss ); + } } ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex ); -- 2.39.5