winbind: Fix a memleak
authorLaurent Menase <laurent.menase@hpe.com>
Wed, 20 May 2020 10:31:53 +0000 (12:31 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 14 Sep 2020 13:33:13 +0000 (13:33 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14388
Signed-off-by: Laurent Menase <laurent.menase@hpe.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Sep 14 13:33:13 UTC 2020 on sn-devel-184

source3/winbindd/winbindd_ads.c

index 20f47eb5954f67d569aaa250d75ac0524c50fc36..6a9d1234f40213c001514d7f7380937edebd0a01 100644 (file)
@@ -405,6 +405,7 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
        DBG_NOTICE("ads query_user_list gave %d entries\n", count);
 
 done:
+       ads_msgfree(ads, res);
        return status;
 }