From: Günther Deschner Date: Wed, 25 Apr 2007 10:01:21 +0000 (+0000) Subject: r22511: Remove unused LDAPMessage. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~607 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31a193b02a08d2323d93659105c0fd5650b33419;p=thirdparty%2Fsamba.git r22511: Remove unused LDAPMessage. Guenther --- diff --git a/source/nsswitch/winbindd_ads.c b/source/nsswitch/winbindd_ads.c index f189123d7dc..01174edf37e 100644 --- a/source/nsswitch/winbindd_ads.c +++ b/source/nsswitch/winbindd_ads.c @@ -609,7 +609,6 @@ static NTSTATUS lookup_usergroups_memberof(struct winbindd_domain *domain, { ADS_STATUS rc; NTSTATUS status = NT_STATUS_UNSUCCESSFUL; - LDAPMessage *res = NULL; ADS_STRUCT *ads; const char *attrs[] = {"memberOf", NULL}; size_t num_groups = 0; @@ -693,8 +692,6 @@ static NTSTATUS lookup_usergroups_memberof(struct winbindd_domain *domain, DEBUG(3,("ads lookup_usergroups (memberof) succeeded for dn=%s\n", user_dn)); done: TALLOC_FREE(group_sids); - if (res) - ads_msgfree(ads, res); return status; }