mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
ITS#7942 plug leak in controls
This commit is contained in:
parent
af8f1e0741
commit
9d9913392a
1 changed files with 21 additions and 0 deletions
|
|
@ -565,6 +565,27 @@ void slap_free_ctrls(
|
|||
{
|
||||
int i;
|
||||
|
||||
if( op->o_assertion != NULL ) {
|
||||
filter_free_x( op, op->o_assertion, 1 );
|
||||
op->o_assertion = NULL;
|
||||
}
|
||||
if( op->o_vrFilter != NULL) {
|
||||
vrFilter_free( op, op->o_vrFilter );
|
||||
op->o_vrFilter = NULL;
|
||||
}
|
||||
if( op->o_preread_attrs != NULL ) {
|
||||
op->o_tmpfree( op->o_preread_attrs, op->o_tmpmemctx );
|
||||
op->o_preread_attrs = NULL;
|
||||
}
|
||||
if( op->o_postread_attrs != NULL ) {
|
||||
op->o_tmpfree( op->o_postread_attrs, op->o_tmpmemctx );
|
||||
op->o_postread_attrs = NULL;
|
||||
}
|
||||
if( op->o_pagedresults_state != NULL ) {
|
||||
op->o_tmpfree( op->o_pagedresults_state, op->o_tmpmemctx );
|
||||
op->o_pagedresults_state = NULL;
|
||||
}
|
||||
|
||||
for (i=0; ctrls[i]; i++) {
|
||||
op->o_tmpfree(ctrls[i], op->o_tmpmemctx );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue