Skip to content

Commit

Permalink
Fix unallocated objects in PQC-related tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Mar 18, 2024
1 parent f5ad1e8 commit 79ca379
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/ffi-enc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ TEST_F(rnp_tests, test_ffi_decrypt_v6_pkesk_test_vector)
// cleanup
rnp_input_destroy(input);
rnp_output_destroy(output);
rnp_ffi_destroy(ffi);
}

TEST_F(rnp_tests, test_ffi_encrypt_pk_with_v6_key)
Expand Down
4 changes: 4 additions & 0 deletions src/tests/ffi-key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3180,7 +3180,9 @@ TEST_F(rnp_tests, test_ffi_v6_sig_subpackets)
assert_false(primary->pub->get_sig(0).sig.has_subpkt(
PGP_SIG_SUBPKT_ISSUER_KEY_ID, false)); // SHOULD have issuer fingerprint

rnp_key_handle_destroy(primary);
rnp_op_generate_destroy(op);
rnp_ffi_destroy(ffi);
}

TEST_F(rnp_tests, test_ffi_v6_cert_import)
Expand Down Expand Up @@ -3226,6 +3228,7 @@ TEST_F(rnp_tests, test_ffi_v6_cert_import)
primary_fp.fingerprint,
primary_fp.length); // first byte in data is the version - skip
}
rnp_ffi_destroy(ffi);
}

TEST_F(rnp_tests, test_ffi_v6_seckey_import)
Expand All @@ -3245,6 +3248,7 @@ TEST_F(rnp_tests, test_ffi_v6_seckey_import)
rnp_input_destroy(input);
assert_rnp_success(rnp_get_secret_key_count(ffi, &keycount));
assert_int_equal(keycount, 2);
rnp_ffi_destroy(ffi);
}
#endif

Expand Down

0 comments on commit 79ca379

Please sign in to comment.