Set scratchpad pointer to null by default
To avoid freeing random blocks of memory in some cases.
This commit is contained in:
parent
c6096c3c34
commit
1bba25e080
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ protected:
|
||||||
alignas(64) randomx::RegisterFile reg;
|
alignas(64) randomx::RegisterFile reg;
|
||||||
alignas(16) randomx::ProgramConfiguration config;
|
alignas(16) randomx::ProgramConfiguration config;
|
||||||
randomx::MemoryRegisters mem;
|
randomx::MemoryRegisters mem;
|
||||||
uint8_t* scratchpad;
|
uint8_t* scratchpad = nullptr;
|
||||||
union {
|
union {
|
||||||
randomx_cache* cachePtr = nullptr;
|
randomx_cache* cachePtr = nullptr;
|
||||||
randomx_dataset* datasetPtr;
|
randomx_dataset* datasetPtr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue