1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

Fix possible memory leak on failure.

(This used to be commit 052ebc44cde8d31571ed1edb602794349825be11)
This commit is contained in:
Andrew Bartlett 2003-02-27 01:05:12 +00:00
parent f6f76ad5ed
commit d62f60f53a

View File

@ -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;
}