Merge pull request #246 from SChernykh/fix_leak

Fixed cache->jit memory leak
pull/247/head
SChernykh 2 years ago committed by GitHub
commit 09aa65c3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save