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