Skip to content

Commit f24b987

Browse files
committed
wolfcrypt/src/rsa.c: fix wc_FreeRsaKey() WOLFSSL_XILINX_CRYPT XFREE() call to pass key->heap as before.
1 parent efff8e0 commit f24b987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ int wc_FreeRsaKey(RsaKey* key)
601601
mp_clear(&key->n);
602602

603603
#ifdef WOLFSSL_XILINX_CRYPT
604-
XFREE(key->mod, heap, DYNAMIC_TYPE_KEY);
604+
XFREE(key->mod, key->heap, DYNAMIC_TYPE_KEY);
605605
key->mod = NULL;
606606
#endif
607607

0 commit comments

Comments
 (0)