summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 07:36:35 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 07:36:35 +0000
commit5329af6e11f9005d27395eb57c1185029d893ae8 (patch)
tree2e4036d67b90a7481e79abd4595be043f83bf129
parent0799c446809a7ae239864e69995849431cd2cb00 (diff)
downloadsamba-5329af6e11f9005d27395eb57c1185029d893ae8.tar.gz
samba-5329af6e11f9005d27395eb57c1185029d893ae8.tar.bz2
samba-5329af6e11f9005d27395eb57c1185029d893ae8.zip
don't double free ldap message lists
(This used to be commit f64612b89bae1148d73555cac00f6019a01f9304)
-rw-r--r--source3/nsswitch/winbindd_ads.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index 524593feda..c5aebad11b 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/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;