mirror of
https://codeberg.org/wownero/RandomWOW
synced 2026-03-04 21:57:36 -05:00
Fix use-after-free in benchmark (debug build)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user