niceBit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c448db33046ac8200d3e5dd66c1658244a32e90d
parent 51809c6993997d22928943eddbd3e9c3a32ab5fb
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Thu, 23 Jan 2020 02:48:32 +1100

Free memory from old sep256k1 contexts

Diffstat:
MniceBit.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/niceBit.c b/niceBit.c @@ -71,6 +71,11 @@ int gen_keypair(unsigned char *seckey, unsigned char *pubaddress) { * (from create_pubkey.h) */ coin_encode(public_key64, pubaddress); + + /* Destroy context to free memory */ + /* TODO make take context out of this function + * and use the same context for all generation? + */ secp256k1_context_destroy(ctx); return 1;