diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-05 07:11:26 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-05 07:11:26 +0000 |
commit | cb01c8e192f24dd4ef5af6f04ef31707090fe5fa (patch) | |
tree | 2dd8414ef5a16990cb48becfe54698f92d708ff4 /source3/nsswitch | |
parent | a313351e94387f9e87f2b9e8d66a9a1e337c51b4 (diff) | |
download | samba-cb01c8e192f24dd4ef5af6f04ef31707090fe5fa.tar.gz samba-cb01c8e192f24dd4ef5af6f04ef31707090fe5fa.tar.bz2 samba-cb01c8e192f24dd4ef5af6f04ef31707090fe5fa.zip |
fixed another leak - memory usage now seems to be quite small
(This used to be commit a45e3968590a021c1b464db5265a09ba48cb5797)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 9420c75f58..524593feda 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -461,6 +461,8 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain, user_dn = ads_pull_string(ads, mem_ctx, msg, "distinguishedName"); + if (msg) ads_msgfree(ads, msg); + rc = ads_search_dn(ads, &msg, user_dn, attrs2); if (rc) { DEBUG(1,("lookup_usergroups(rid=%d) ads_search tokenGroups: %s\n", user_rid, ads_errstr(rc))); |