Skip to content

Commit 4e96b11

Browse files
authored
Merge pull request #9557 from douzzer/20251218-fixes
20251218-fixes
2 parents a103f5a + 8a8ef35 commit 4e96b11

File tree

3 files changed

+133
-82
lines changed

3 files changed

+133
-82
lines changed

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ void FreeSSL_Ctx(WOLFSSL_CTX* ctx)
30383038
!defined(WOLFSSL_NO_DEF_TICKET_ENC_CB) && !defined(NO_TLS)
30393039
TicketEncCbCtx_Free(&ctx->ticketKeyCtx);
30403040
#endif
3041-
wolfSSL_RefFree(&ctx->ref);
3041+
wolfSSL_RefWithMutexFree(&ctx->ref);
30423042
XFREE(ctx, heap, DYNAMIC_TYPE_CTX);
30433043
}
30443044
else {

wolfcrypt/src/wc_lms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ int wc_LmsKey_Reload(LmsKey* key)
913913
/* Reload the key ready for signing. */
914914
ret = wc_hss_reload_key(state, key->priv_raw, &key->priv,
915915
key->priv_data, NULL);
916+
wc_lmskey_state_free(state);
916917
}
917918
ForceZero(state, sizeof(LmsState));
918919
WC_FREE_VAR_EX(state, NULL, DYNAMIC_TYPE_TMP_BUFFER);

0 commit comments

Comments
 (0)