Skip to content

Navigation Menu

Sign in
Sign up

Free FP ECC cache in provider teardown - #445

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

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

Conversation

@ColtonWilley

@ColtonWilley ColtonWilley commented Jul 14, 2026

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).

Copy link
Copy Markdown
Contributor Author

Jenkins retest this please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /