Merge pull request #241

5c2a4fa Fix memory leak in context unit test (Andrew Poelstra)
pull/11871/head
Pieter Wuille 10 years ago
commit f3d3519ce0
No known key found for this signature in database
GPG Key ID: 57896D2FF8F0B657

@ -142,6 +142,12 @@ void run_context_tests(void) {
/* try verifying */ /* try verifying */
CHECK(secp256k1_ecdsa_sig_verify(&vrfy->ecmult_ctx, &sig, &pub, &msg)); CHECK(secp256k1_ecdsa_sig_verify(&vrfy->ecmult_ctx, &sig, &pub, &msg));
CHECK(secp256k1_ecdsa_sig_verify(&both->ecmult_ctx, &sig, &pub, &msg)); CHECK(secp256k1_ecdsa_sig_verify(&both->ecmult_ctx, &sig, &pub, &msg));
/* cleanup */
secp256k1_context_destroy(none);
secp256k1_context_destroy(sign);
secp256k1_context_destroy(vrfy);
secp256k1_context_destroy(both);
} }
/***** HASH TESTS *****/ /***** HASH TESTS *****/

Loading…
Cancel
Save