From 109a3cc75f530d900d080a2c7223911c1c9ed2a4 Mon Sep 17 00:00:00 2001 From: Doug Engert Date: Wed, 28 Aug 2024 08:20:59 -0500 Subject: [PATCH] pkcs15-init.c - fix memory leak or RSA exponent On branch X25519-improvements-2 Changes to be committed: modified: src/tools/pkcs15-init.c --- src/tools/pkcs15-init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/pkcs15-init.c b/src/tools/pkcs15-init.c index 5da3c05c22e..b7abb2b44b4 100644 --- a/src/tools/pkcs15-init.c +++ b/src/tools/pkcs15-init.c @@ -1258,6 +1258,7 @@ do_store_public_key(struct sc_profile *profile, EVP_PKEY *pkey) sc_pkcs15_erase_pubkey(&(args.key)); sc_unlock(g_p15card->card); } + sc_pkcs15_erase_pubkey(&(args.key)); return r; }