mirror of
https://github.com/wownero/RandomWOW.git
synced 2026-10-17 07:21:35 +02:00
Merge pull request #246 from SChernykh/fix_leak
Fixed cache->jit memory leak
This commit is contained in:
+1
-3
@@ -134,9 +134,7 @@ extern "C" {
|
|||||||
|
|
||||||
void randomx_release_cache(randomx_cache* cache) {
|
void randomx_release_cache(randomx_cache* cache) {
|
||||||
assert(cache != nullptr);
|
assert(cache != nullptr);
|
||||||
if (cache->memory != nullptr) {
|
cache->dealloc(cache);
|
||||||
cache->dealloc(cache);
|
|
||||||
}
|
|
||||||
delete cache;
|
delete cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user