@@ -750,14 +750,14 @@ TEST_F(rnp_tests, test_ffi_decrypt_v6_skesk_test_vectors)
750750
751751 assert_rnp_success (
752752 rnp_input_from_path (&input, " data/test_crypto_refresh/v6_skesk_eax.asc" ));
753- assert_rnp_success (rnp_output_to_null (&output));
754753 assert_rnp_success (rnp_output_to_path (&output, " decrypted" ));
755754 assert_rnp_success (rnp_op_verify_create (&verify, ffi, input, output));
756755 assert_rnp_success (rnp_op_verify_execute (verify));
757756 assert_string_equal (file_to_str (" decrypted" ).c_str (), " Hello, world!" );
758757 assert_int_equal (unlink (" decrypted" ), 0 );
759758 rnp_input_destroy (input);
760759 rnp_output_destroy (output);
760+ rnp_op_verify_destroy (verify);
761761
762762 assert_rnp_success (
763763 rnp_input_from_path (&input, " data/test_crypto_refresh/v6_skesk_ocb.asc" ));
@@ -768,6 +768,7 @@ TEST_F(rnp_tests, test_ffi_decrypt_v6_skesk_test_vectors)
768768 assert_int_equal (unlink (" decrypted" ), 0 );
769769 rnp_input_destroy (input);
770770 rnp_output_destroy (output);
771+ rnp_op_verify_destroy (verify);
771772
772773 rnp_ffi_destroy (ffi);
773774}
@@ -800,6 +801,7 @@ TEST_F(rnp_tests, test_ffi_v6_skesk_enc_dec)
800801 assert_rnp_success (rnp_op_encrypt_execute (enc));
801802 rnp_input_destroy (input);
802803 rnp_output_destroy (output);
804+ rnp_op_encrypt_destroy (enc);
803805
804806 assert_rnp_success (rnp_ffi_set_pass_provider (
805807 ffi, ffi_string_password_provider, (void *) " password" ));
@@ -811,6 +813,7 @@ TEST_F(rnp_tests, test_ffi_v6_skesk_enc_dec)
811813 assert_string_equal (file_to_str (" decrypted" ).c_str (), plaintext);
812814 rnp_input_destroy (input);
813815 rnp_output_destroy (output);
816+ rnp_op_verify_destroy (verify);
814817
815818 assert_int_equal (unlink (" decrypted" ), 0 );
816819 assert_int_equal (unlink (" encrypted" ), 0 );
0 commit comments