From: Howard Chu Date: Sun, 23 Nov 2008 20:43:39 +0000 (+0000) Subject: ITS#5827, release syncop after mod op completes X-Git-Tag: ACLCHECK_0~1054 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c71e7b399ae90ab6e7e082520fc97bcd6f8da2fe;p=openldap ITS#5827, release syncop after mod op completes --- 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 );