From 7a5149d73891a5ff5c69a551ea62eb8ff4b44d27 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 6 May 2016 08:22:03 -0600 Subject: [PATCH] Fix memory leak of sss_result in sudo_sss_lookup() Coverity CID 104106 --- plugins/sudoers/sssd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sudoers/sssd.c b/plugins/sudoers/sssd.c index 167bfa37e..c9525e4d9 100644 --- a/plugins/sudoers/sssd.c +++ b/plugins/sudoers/sssd.c @@ -1203,6 +1203,8 @@ sudo_sss_lookup(struct sudo_nss *nss, int ret, int pwflag) } } done: + handle->fn_free_result(sss_result); + sudo_debug_printf(SUDO_DEBUG_DIAG, "Done with LDAP searches"); if (!ISSET(ret, VALIDATE_SUCCESS)) { -- 2.49.0