Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reference counted MemoryPlot #348

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

reference counted MemoryPlot #348

wants to merge 1 commit into from

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 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
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.

1 participant