From: Laurent Menase Date: Wed, 20 May 2020 10:31:53 +0000 (+0200) Subject: winbind: Fix a memleak X-Git-Tag: samba-4.12.8~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af0ca2ee90bf1d22148bbca7fa624af24a442a7;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-12-test): Karolin Seeger Autobuild-Date(v4-12-test): Fri Sep 25 11:15:08 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; }