Skip to content

Commit

Permalink
Fix memory leak detected by valgrind (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
splasky committed Jul 17, 2022
1 parent e88cc36 commit 664c6f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/dump_alg_info.c
Expand Up @@ -32,6 +32,7 @@ int main(void) {
printf(" length-ciphertext: %zu\n", kem->length_ciphertext);
printf(" length-secret-key: %zu\n", kem->length_secret_key);
printf(" length-shared-secret: %zu\n", kem->length_shared_secret);
OQS_KEM_free(kem);
}

// iterate through signature schemes and print info
Expand All @@ -50,6 +51,7 @@ int main(void) {
printf(" length-public-key: %zu\n", sig->length_public_key);
printf(" length-secret-key: %zu\n", sig->length_secret_key);
printf(" length-signature: %zu\n", sig->length_signature);
OQS_SIG_free(sig);
}
}

0 comments on commit 664c6f3

Please sign in to comment.