update based on PR comments

This commit is contained in:
John Bland
2024-03-25 10:53:58 -04:00
parent d9d3f9a4f4
commit 0bd8775eae

View File

@ -25966,7 +25966,7 @@ int wc_RsaKeyToDer(RsaKey* key, byte* output, word32 inLen)
/* free outstanding tmps */
for (i = 0; i < RSA_INTS; i++) {
if (tmps[i] != NULL)
XFREE(tmps[i]);
XFREE(tmps[i], key->heap, DYNAMIC_TYPE_RSA);
}
#endif
return ret;