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(compiler): Fix memory bug in universal exports #1663

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

ospencer
Copy link
Member

Grain calling convention requires all function arguments be incref'ed before calling the function. Previously, after calling a universal export, the closure would be deallocated, crashing the program if the export was called more than once.

Necessary for #1029

@ospencer ospencer self-assigned this Feb 11, 2023
@ospencer ospencer added this pull request to the merge queue Feb 13, 2023
Merged via the queue into main with commit 87724f0 Feb 13, 2023
@ospencer ospencer deleted the oscar/universal-exports-leak branch February 13, 2023 16:29
av8ta pushed a commit to av8ta/grain that referenced this pull request Apr 11, 2023
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