r23263: Remove an unused variable -- Fix Coverity ID 358
authorVolker Lendecke <vlendec@samba.org>
Thu, 31 May 2007 09:23:51 +0000 (09:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:01 +0000 (12:23 -0500)
(This used to be commit c5929aa82b20e8a3877e6196c17bc9118cb399b0)

source3/nsswitch/winbindd_ads.c

index a62a436f788d2d85d4135507ba02f220ef09e657..2dcd1284b303081565bf797e148a994bb6ab93cb 100644 (file)
@@ -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);