mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#6744 - plug leak
This commit is contained in:
parent
75bb972859
commit
a2053729f0
1 changed files with 7 additions and 0 deletions
|
|
@ -807,6 +807,7 @@ nextresp2:
|
|||
}
|
||||
|
||||
} else {
|
||||
LDAPRequest *lrf = lr;
|
||||
if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL ) {
|
||||
/* request without any referrals */
|
||||
simple_request = ( hadref ? 0 : 1 );
|
||||
|
|
@ -829,6 +830,12 @@ nextresp2:
|
|||
break; /* not completely done yet */
|
||||
}
|
||||
}
|
||||
/* ITS#6744: Original lr was refcounted when we retrieved it,
|
||||
* must release it now that we're working with the parent
|
||||
*/
|
||||
if ( lrf != &dummy_lr ) {
|
||||
ldap_return_request( ld, lrf, 0 );
|
||||
}
|
||||
|
||||
/* Check if all requests are finished, lr is now parent */
|
||||
tmplr = lr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue