From 03ed495f84c4916d6cfc042127cb5acec661cfee Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 19 May 2020 16:48:44 -0700 Subject: [PATCH] free temporary buffer --- wolfcrypt/src/rsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index db91ec539..a441b61ba 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -1851,6 +1851,7 @@ static int wc_RsaFunctionSync(const byte* in, word32 inLen, byte* out, ret = BAD_STATE_E; } } + XFREE(d, key->heap, DYNAMIC_TYPE_PRIVATE_KEY); } #endif break;