From cb2a965907014105f7564b183a9be79f99329873 Mon Sep 17 00:00:00 2001 From: Warlock-Dalbaeb Date: Wed, 16 Aug 2017 09:03:31 +0700 Subject: [PATCH] free memory --- vanitygen.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vanitygen.cpp b/vanitygen.cpp index 4af022d..0e20df0 100644 --- a/vanitygen.cpp +++ b/vanitygen.cpp @@ -191,12 +191,19 @@ Orignal is sensei of crypto ;) std::cout << "Address found " << addr << " in " << id_thread << std::endl; found=true; FoundNonce=*nonce; + free(hash); + free(b); return true; } (*nonce)++; hashescounter++; - if (found) break; + if (found){ + free(hash); + free(b); + break; + } + }//while }