From f24b987f5959bbe057d349111caf0cfccce18860 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 21 Oct 2024 12:26:29 -0500 Subject: [PATCH] wolfcrypt/src/rsa.c: fix wc_FreeRsaKey() WOLFSSL_XILINX_CRYPT XFREE() call to pass key->heap as before. --- wolfcrypt/src/rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index f5ed3d3533..9e34599caf 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -601,7 +601,7 @@ int wc_FreeRsaKey(RsaKey* key) mp_clear(&key->n); #ifdef WOLFSSL_XILINX_CRYPT - XFREE(key->mod, heap, DYNAMIC_TYPE_KEY); + XFREE(key->mod, key->heap, DYNAMIC_TYPE_KEY); key->mod = NULL; #endif