Skip to content

Commit 83e9a07

Browse files
committed
wolfcrypt/src/wc_lms.c: fix leak in wc_LmsKey_Reload().
1 parent 59b3219 commit 83e9a07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)