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

fix: resource free #410

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

vird
Copy link
Collaborator

@vird vird commented Mar 10, 2023

Probably can fix Fatal error in erl_drv_rwlock_destroy(): Invalid argument [22]
But may produce other more meaningful error message

Copy link
Contributor

@hlolli hlolli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, would it be possible to not cast objPtr to a new struct variable. I worry two variables to the same struct pointer could at the same time both point to NULL and the previous value. Perhaps there's some filed s->is_freed (int) that could be more reliable. But it makes sense to me these changes, a typical c-language headache. Harmless even if it wouldn't fix the issue.

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