bladebit icon indicating copy to clipboard operation
bladebit copied to clipboard

reference counted `MemoryPlot`

Open arvidn opened this issue 2 years ago • 0 comments

Currently we copy the MemoryPlot objects, containing a pointer to allocated memory, and then free that memory in the destructor, unconditionally. This leads to double frees.

This is where we copy initialized MemoryPlot objects: https://github.com/Chia-Network/bladebit/blob/cuda-compression/src/tools/PlotValidator.cpp#L279

arvidn avatar Jul 09 '23 19:07 arvidn