mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Fix for wc_ecc_ctx_free
and heap hint. Fixes #4246.
This commit is contained in:
@ -11171,8 +11171,10 @@ ecEncCtx* wc_ecc_ctx_new(int flags, WC_RNG* rng)
|
|||||||
void wc_ecc_ctx_free(ecEncCtx* ctx)
|
void wc_ecc_ctx_free(ecEncCtx* ctx)
|
||||||
{
|
{
|
||||||
if (ctx) {
|
if (ctx) {
|
||||||
|
void* heap = ctx->heap;
|
||||||
ForceZero(ctx, sizeof(ecEncCtx));
|
ForceZero(ctx, sizeof(ecEncCtx));
|
||||||
XFREE(ctx, ctx->heap, DYNAMIC_TYPE_ECC);
|
XFREE(ctx, heap, DYNAMIC_TYPE_ECC);
|
||||||
|
(void)heap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user