URL: https://github.com/SSSD/sssd/pull/5915 Author: alexey-tikhonov Title: #5915: P11_CHILD: fix mem leak in case get_preferred_rsa_mechanism() Action: opened
PR body: """ doesn't match anything. Spotted by David Ward at https://github.com/SSSD/sssd/pull/5855#discussion_r767161781 """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5915/head:pr5915 git checkout pr5915
From 062ccc126abda0f9c5e69e284fb32a2fabbb6573 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov <atikh...@redhat.com> Date: Mon, 13 Dec 2021 10:57:32 +0100 Subject: [PATCH] P11_CHILD: fix mem leak in case get_preferred_rsa_mechanism() doesn't match anything. Spotted by David Ward at https://github.com/SSSD/sssd/pull/5855#discussion_r767161781 --- src/p11_child/p11_child_openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p11_child/p11_child_openssl.c b/src/p11_child/p11_child_openssl.c index a06b6d2ff0..0fcda98bde 100644 --- a/src/p11_child/p11_child_openssl.c +++ b/src/p11_child/p11_child_openssl.c @@ -1374,6 +1374,7 @@ static CK_RV get_preferred_rsa_mechanism(TALLOC_CTX *mem_ctx, } } } + talloc_free(mechanism_list); DEBUG(SSSDBG_MINOR_FAILURE, "No match found\n"); return CKR_GENERAL_ERROR;
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure