Skip to content

Conversation

@arvidn
Copy link

@arvidn arvidn commented Jul 9, 2023

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 arvidn force-pushed the ref-counted-mem-plot branch from 95ebdb2 to 03cc2e3 Compare July 9, 2023 19:47
@arvidn arvidn marked this pull request as ready for review July 9, 2023 20:32
@arvidn arvidn requested a review from harold-b July 9, 2023 20:32
Base automatically changed from cuda-compression to develop August 4, 2023 22:28
Base automatically changed from develop to master February 6, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants