Merge pull request #246 from SChernykh/fix_leak

Fixed cache->jit memory leak
This commit is contained in:
SChernykh
2022-05-25 09:12:36 +02:00
committed by GitHub

View File

@@ -134,9 +134,7 @@ extern "C" {
void randomx_release_cache(randomx_cache* cache) {
assert(cache != nullptr);
if (cache->memory != nullptr) {
cache->dealloc(cache);
}
cache->dealloc(cache);
delete cache;
}