mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-08-15 00:23:14 +00:00
Merge pull request #246 from SChernykh/fix_leak
Fixed cache->jit memory leak
This commit is contained in:
commit
09aa65c3c7
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue