Skip to content

Commit

Permalink
fix sanitizer results [full tests]
Browse files Browse the repository at this point in the history
Signed-off-by: Basil Hess <[email protected]>
  • Loading branch information
bhess committed Nov 5, 2024
1 parent 817fb7d commit 444bccf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/vectors_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ static OQS_STATUS sig_kg_vector(const char *method_name,
randombytes_free();
}
OQS_MEM_insecure_free(public_key);
OQS_MEM_insecure_free(signature);
OQS_SIG_free(sig);
return ret;
}
Expand Down Expand Up @@ -411,7 +412,6 @@ int main(int argc, char **argv) {
}

if (!strcmp(test_name, "keyGen")) {
printf("in keygen..\n");
prng_output_stream = argv[3]; // d || z
kg_pk = argv[4];
kg_sk = argv[5];
Expand Down Expand Up @@ -534,15 +534,15 @@ int main(int argc, char **argv) {
goto cleanup;

cleanup:
free(prng_output_stream_bytes);
free(kg_pk_bytes);
free(kg_sk_bytes);
free(sigVer_pk_bytes);
free(sigVer_msg_bytes);
free(sigVer_sig_bytes);
free(sigGen_sk_bytes);
free(sigGen_msg_bytes);
free(sigGen_sig_bytes);
OQS_MEM_insecure_free(prng_output_stream_bytes);
OQS_MEM_insecure_free(kg_pk_bytes);
OQS_MEM_insecure_free(kg_sk_bytes);
OQS_MEM_insecure_free(sigVer_pk_bytes);
OQS_MEM_insecure_free(sigVer_msg_bytes);
OQS_MEM_insecure_free(sigVer_sig_bytes);
OQS_MEM_insecure_free(sigGen_sk_bytes);
OQS_MEM_insecure_free(sigGen_msg_bytes);
OQS_MEM_insecure_free(sigGen_sig_bytes);
OQS_SIG_free(sig);

if (rc != EXIT_SUCCESS) {
Expand Down

0 comments on commit 444bccf

Please sign in to comment.