diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d404674 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.deps +.objs +parser +tst diff --git a/util.cpp b/util.cpp index dd4d4dd..7b35f48 100644 --- a/util.cpp +++ b/util.cpp @@ -603,7 +603,7 @@ bool addrToHash160( static BN_CTX *ctx = 0; if(unlikely(!ctx)) { ctx = BN_CTX_new(); - BN_CTX_init(ctx); + BN_CTX_free(ctx); sum = BN_new(); } @@ -726,7 +726,7 @@ void hash160ToAddr( if(!ctx) { ctx = BN_CTX_new(); - BN_CTX_init(ctx); + BN_CTX_free(ctx); b58 = BN_new(); num = BN_new();