diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-05 07:36:35 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-05 07:36:35 +0000 |
commit | f64612b89bae1148d73555cac00f6019a01f9304 (patch) | |
tree | 465668bbc7b490252835085984005b8a6a8149ec /source/nsswitch/winbindd_ads.c | |
parent | 13b933104e1389608e4831ca47dd8106ea0c60a5 (diff) | |
download | samba-f64612b89bae1148d73555cac00f6019a01f9304.tar.gz samba-f64612b89bae1148d73555cac00f6019a01f9304.tar.xz samba-f64612b89bae1148d73555cac00f6019a01f9304.zip |
don't double free ldap message lists
Diffstat (limited to 'source/nsswitch/winbindd_ads.c')
-rw-r--r-- | source/nsswitch/winbindd_ads.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/nsswitch/winbindd_ads.c b/source/nsswitch/winbindd_ads.c index 524593fedab..c5aebad11bd 100644 --- a/source/nsswitch/winbindd_ads.c +++ b/source/nsswitch/winbindd_ads.c @@ -159,7 +159,6 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain, done: if (res) ads_msgfree(ads, res); - if (msg) ads_msgfree(ads, msg); return status; } @@ -243,7 +242,6 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain, done: if (res) ads_msgfree(ads, res); - if (msg) ads_msgfree(ads, msg); return status; } @@ -559,7 +557,6 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain, status = NT_STATUS_OK; done: - if (msg) ads_msgfree(ads, msg); if (res) ads_msgfree(ads, res); return status; |