Fix dynamic type name

This commit is contained in:
Sean Parkinson
2020-11-05 10:36:05 +10:00
parent 5ca8e8f87c
commit 38740a1caa
2 changed files with 3 additions and 3 deletions

View File

@@ -20090,7 +20090,7 @@ int CreateDevPrivateKey(void** pkey, byte* data, word32 length, int hsType,
*pkey = (void*)rsaKey; *pkey = (void*)rsaKey;
} }
else { else {
XFREE(rsaKey, heap, DYNAMIC_TYPE_EC); XFREE(rsaKey, heap, DYNAMIC_TYPE_RSA);
} }
#endif #endif
} }
@@ -20113,7 +20113,7 @@ int CreateDevPrivateKey(void** pkey, byte* data, word32 length, int hsType,
*pkey = (void*)ecKey; *pkey = (void*)ecKey;
} }
else { else {
XFREE(ecKey, heap, DYNAMIC_TYPE_EC); XFREE(ecKey, heap, DYNAMIC_TYPE_ECC);
} }
#endif #endif
} }

View File

@@ -7984,7 +7984,7 @@ int wolfSSL_check_private_key(const WOLFSSL* ssl)
wc_ecc_free(pkey); wc_ecc_free(pkey);
} }
if (pkey != NULL) { if (pkey != NULL) {
XFREE(pkey, ctx->heap, type); XFREE(pkey, ssl->heap, type);
} }
} }
else else