Skip to content

Free FP ECC cache in provider teardown#445

Open
ColtonWilley wants to merge 1 commit into
wolfSSL:masterfrom
ColtonWilley:fix-fpecc-cache-teardown
Open

Free FP ECC cache in provider teardown#445
ColtonWilley wants to merge 1 commit into
wolfSSL:masterfrom
ColtonWilley:fix-fpecc-cache-teardown

Conversation

@ColtonWilley

Copy link
Copy Markdown
Contributor

wc_ecc_free() doesn't release wolfCrypt's fixed-point ECC cache (fp_cache[]), and nothing in wolfProvider calls wc_ecc_fp_free() — so it's held for the process lifetime. Call it in wolfssl_prov_ctx_free(), guarded by FP_ECC.

Frees the teardown thread's cache (thread-local under HAVE_THREAD_LS); no-op when empty.

wc_ecc_free() doesn't release wolfCrypt's fixed-point ECC cache; call
wc_ecc_fp_free() in wolfssl_prov_ctx_free() (guarded by FP_ECC).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant