From: Laurent Menase Date: Wed, 20 May 2020 10:31:53 +0000 (+0200) Subject: winbind: Fix a memleak X-Git-Tag: samba-4.11.14~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=979e078065e51341e535fe3e69088852d8511a9f;p=thirdparty%2Fsamba.git winbind: Fix a memleak Bug: https://bugzilla.samba.org/show_bug.cgi?id=14388 Signed-off-by: Laurent Menase Reviewed-by: Volker Lendecke Reviewed-by: Noel Power Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Mon Sep 14 13:33:13 UTC 2020 on sn-devel-184 (cherry picked from commit 8f868b0ea0b4795668f7bc0b028cd85686b249fb) Autobuild-User(v4-11-test): Karolin Seeger Autobuild-Date(v4-11-test): Mon Oct 5 11:17:23 UTC 2020 on sn-devel-184 --- diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c index 20f47eb5954..6a9d1234f40 100644 --- a/source3/winbindd/winbindd_ads.c +++ b/source3/winbindd/winbindd_ads.c @@ -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; }