diff --git a/source/nsswitch/winbindd_ads.c b/source/nsswitch/winbindd_ads.c index a62a436f788..2dcd1284b30 100644 --- a/source/nsswitch/winbindd_ads.c +++ b/source/nsswitch/winbindd_ads.c @@ -898,7 +898,6 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain, uint32 **name_types) { ADS_STATUS rc; - LDAPMessage *res=NULL; ADS_STRUCT *ads = NULL; char *ldap_exp; NTSTATUS status = NT_STATUS_UNSUCCESSFUL; @@ -1081,9 +1080,6 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain, done: - if (res) - ads_msgfree(ads, res); - /* free intermediate lists. - a temp talloc ctx might be better. */ TALLOC_FREE(sid_mem_nocache); TALLOC_FREE(names_nocache);