mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 06:31:11 -05:00
ITS#9867 syncprov: plug findbase memleak
This commit is contained in:
parent
14972a7ae1
commit
745a71b18d
1 changed files with 4 additions and 2 deletions
|
|
@ -3155,6 +3155,8 @@ syncprov_op_search( Operation *op, SlapReply *rs )
|
|||
*/
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex );
|
||||
if ( slapd_shutdown ) {
|
||||
aband:
|
||||
ch_free( sop->s_base.bv_val );
|
||||
ch_free( sop );
|
||||
return SLAPD_ABANDON;
|
||||
}
|
||||
|
|
@ -3164,8 +3166,7 @@ syncprov_op_search( Operation *op, SlapReply *rs )
|
|||
}
|
||||
if ( op->o_abandon ) {
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex );
|
||||
ch_free( sop );
|
||||
return SLAPD_ABANDON;
|
||||
goto aband;
|
||||
}
|
||||
ldap_pvt_thread_mutex_init( &sop->s_mutex );
|
||||
sop->s_next = si->si_ops;
|
||||
|
|
@ -3294,6 +3295,7 @@ bailout:
|
|||
sp = &(*sp)->s_next;
|
||||
*sp = sop->s_next;
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex );
|
||||
ch_free( sop->s_base.bv_val );
|
||||
ch_free( sop );
|
||||
}
|
||||
rs->sr_ctrls = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue