diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-27 01:05:12 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-27 01:05:12 +0000 |
commit | d62f60f53ac18b3de9c7922105c6796361b91a11 (patch) | |
tree | 7d480d158345ee7c32ff791f3096cfa0d7a5856a /source3 | |
parent | f6f76ad5ed7b3eee7cbd3bca6f3ccd1194a0e98a (diff) | |
download | samba-d62f60f53ac18b3de9c7922105c6796361b91a11.tar.gz samba-d62f60f53ac18b3de9c7922105c6796361b91a11.tar.bz2 samba-d62f60f53ac18b3de9c7922105c6796361b91a11.zip |
Fix possible memory leak on failure.
(This used to be commit 052ebc44cde8d31571ed1edb602794349825be11)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 6c79e59bae..de3757aa44 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -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; } |