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

Add detection for pointers deallocated with naDelete when they get deleted twice #28

Open
Manderby opened this issue Apr 16, 2021 · 0 comments
Labels
improvement Make existing functionality better

Comments

@Manderby
Copy link
Owner

Manderby commented Apr 16, 2021

Deallocation using naRelease has this built in because of the NARefCount which is checked upon calling naRelease or naRetain. But naDelete does not have the storage capacity to do that.

Would need an additional dummy-space similar to the refcount but which is only available whe NA_DEBUG is 1.

When doing this, think about adding this functionality to all structs which use naClearXXX. Maybe do something with NAPtr

@Manderby Manderby added the improvement Make existing functionality better label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Make existing functionality better
Projects
None yet
Development

No branches or pull requests

1 participant