mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
Fix possible memory leak on failure.
This commit is contained in:
parent
22fc0d48ff
commit
052ebc44cd
@ -580,6 +580,7 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
|
||||
user_dn = ads_pull_string(ads, mem_ctx, msg, "distinguishedName");
|
||||
if (!user_dn) {
|
||||
DEBUG(1,("lookup_usergroups(sid=%s) ads_search did not return a a distinguishedName!\n", sid_to_string(sid_string, sid)));
|
||||
if (msg) ads_msgfree(ads, msg);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user