Fix use-after-free in benchmark (debug build)

This commit is contained in:
tevador 2019-08-05 09:10:10 +02:00
parent aa3523238b
commit 91f3edb5eb
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ int main(int argc, char** argv) {
randomx_init_dataset(dataset, cache, 0, datasetItemCount);
}
randomx_release_cache(cache);
cache = nullptr;
threads.clear();
}
std::cout << "Memory initialized in " << sw.getElapsed() << " s" << std::endl;