mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r22015: Fix for memory leak from Steven Danneman <steven.danneman@isilon.com>
Jeremy.
This commit is contained in:
parent
c3a565081d
commit
61a1574f50
@ -931,6 +931,8 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
|
||||
if (num_retries < 5) {
|
||||
num_retries++;
|
||||
num_members = 0;
|
||||
ads_msgfree(ads, res);
|
||||
res = NULL;
|
||||
continue;
|
||||
} else {
|
||||
DEBUG(5, ("ads: lookup_groupmem USN on this record changed"
|
||||
@ -947,6 +949,9 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
|
||||
&num_members,
|
||||
&more_values);
|
||||
|
||||
ads_msgfree(ads, res);
|
||||
res = NULL;
|
||||
|
||||
if ((members == NULL) || (num_members == 0))
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user