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(api): stop double free of prop array #793

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

sno2
Copy link
Collaborator

@sno2 sno2 commented Jul 19, 2022

Closes #786 and also solves a segfault with the same cause which seems to not have been found yet when using the JSX prop array.

When you release the JSPropertyNameArrayRef, it actually deallocates the underlying names. However, we were freeing the individual names and then the property name array ref was freeing them. Jarred found the cause of the double free in the Discord.

@Jarred-Sumner Jarred-Sumner merged commit 8bcf68e into oven-sh:main Jul 20, 2022
@sno2 sno2 deleted the fix/double-free-prop-names branch July 20, 2022 04:06
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.

investigate console.log segfault
2 participants