33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 75822701770179582c344960603cce8bd54a7890 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Tikhonov <atikhono@redhat.com>
|
|
Date: Mon, 19 Jun 2023 21:56:13 +0200
|
|
Subject: [PATCH] KRB5: fix memory leak
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Reviewed-by: Alejandro López <allopez@redhat.com>
|
|
Reviewed-by: Tomáš Halman <thalman@redhat.com>
|
|
|
|
Reference: https://github.com/SSSD/sssd/commit/75822701770179582c344960603cce8bd54a7890
|
|
Conflict: NA
|
|
---
|
|
src/providers/krb5/krb5_child.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
|
|
index 774b47e3a..158831198 100644
|
|
--- a/src/providers/krb5/krb5_child.c
|
|
+++ b/src/providers/krb5/krb5_child.c
|
|
@@ -1854,6 +1854,7 @@ static krb5_error_code validate_tgt(struct krb5_req *kr)
|
|
if (kerr != 0) {
|
|
DEBUG(SSSDBG_CRIT_FAILURE, "error reading keytab [%s], " \
|
|
"not verifying TGT.\n", kr->keytab);
|
|
+ krb5_kt_close(kr->ctx, keytab);
|
|
return kerr;
|
|
}
|
|
|
|
--
|
|
2.27.0
|
|
|