We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e37ffd + fcfe75e commit ea8fb69Copy full SHA for ea8fb69
1 file changed
src/sign-verify/clu_verify.c
@@ -842,6 +842,7 @@ int wolfCLU_verify_signature_dilithium(byte* sig, int sigSz, byte* msg,
842
if (XFSEEK(keyFile, 0, SEEK_SET) != 0 ||
843
(int)XFREAD(keyBuf, 1, keyFileSz, keyFile) != keyFileSz) {
844
wolfCLU_LogError("Failed to read public key.\nRET: %d", ret);
845
+ XFCLOSE(keyFile);
846
XFREE(keyBuf, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
847
wc_dilithium_free(key);
848
#ifdef WOLFSSL_SMALL_STACK
0 commit comments