mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 04:13:55 -05:00
ITS#6795 plug sr_ctrls memleak
This commit is contained in:
parent
85ba0b81ed
commit
4c1464f3cd
1 changed files with 1 additions and 0 deletions
|
|
@ -2330,6 +2330,7 @@ syncprov_search_response( Operation *op, SlapReply *rs )
|
|||
rs->sr_ctrls = op->o_tmpalloc( sizeof(LDAPControl *)*2,
|
||||
op->o_tmpmemctx );
|
||||
rs->sr_ctrls[1] = NULL;
|
||||
rs->sr_flags |= REP_CTRLS_MUSTBEFREED;
|
||||
/* If we're in delta-sync mode, always send a cookie */
|
||||
if ( si->si_nopres && si->si_usehint && a ) {
|
||||
struct berval cookie;
|
||||
|
|
|
|||
Loading…
Reference in a new issue