mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-12-22 15:58:53 +00:00
Fix use-after-free in benchmark (debug build)
This commit is contained in:
parent
aa3523238b
commit
91f3edb5eb
@ -239,6 +239,7 @@ int main(int argc, char** argv) {
|
|||||||
randomx_init_dataset(dataset, cache, 0, datasetItemCount);
|
randomx_init_dataset(dataset, cache, 0, datasetItemCount);
|
||||||
}
|
}
|
||||||
randomx_release_cache(cache);
|
randomx_release_cache(cache);
|
||||||
|
cache = nullptr;
|
||||||
threads.clear();
|
threads.clear();
|
||||||
}
|
}
|
||||||
std::cout << "Memory initialized in " << sw.getElapsed() << " s" << std::endl;
|
std::cout << "Memory initialized in " << sw.getElapsed() << " s" << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user