mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
restore code in search_cleanup to free ctrls
This commit is contained in:
parent
c607449cd0
commit
bc09291b81
@ -1256,13 +1256,11 @@ typedef struct searchstate {
|
||||
static int
|
||||
syncprov_search_cleanup( Operation *op, SlapReply *rs )
|
||||
{
|
||||
#if 0
|
||||
if ( rs->sr_ctrls ) {
|
||||
free( rs->sr_ctrls[0] );
|
||||
op->o_tmpfree( rs->sr_ctrls[0], op->o_tmpmemctx );
|
||||
op->o_tmpfree( rs->sr_ctrls, op->o_tmpmemctx );
|
||||
rs->sr_ctrls = NULL;
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user