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;