mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
don't leak entry/referrals in case of reference
This commit is contained in:
parent
4e29de5ba6
commit
3d075186bf
1 changed files with 10 additions and 1 deletions
|
|
@ -1843,6 +1843,10 @@ backsql_search( Operation *op, SlapReply *rs )
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* an entry was created; free it */
|
||||
entry_clean( bsi.bsi_e );
|
||||
|
||||
/* fall thru */
|
||||
|
||||
default:
|
||||
|
|
@ -1863,8 +1867,13 @@ backsql_search( Operation *op, SlapReply *rs )
|
|||
#endif /* SLAP_ACL_HONOR_DISCLOSE */
|
||||
|
||||
send_ldap_result( op, rs );
|
||||
goto done;
|
||||
|
||||
if ( rs->sr_ref ) {
|
||||
ber_bvarray_free( rs->sr_ref );
|
||||
rs->sr_ref = NULL;
|
||||
}
|
||||
|
||||
goto done;
|
||||
}
|
||||
#ifdef SLAP_ACL_HONOR_DISCLOSE
|
||||
/* NOTE: __NEW__ "search" access is required
|
||||
|
|
|
|||
Loading…
Reference in a new issue