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

cgen: only generate free in wrapper for spawn and not go #19780

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

joe-conigliaro
Copy link
Member

@joe-conigliaro joe-conigliaro commented Nov 6, 2023

fixes bug where free was called pointer not allocated with malloc

pointer being freed was not allocated

🤖 Generated by Copilot at 8b09e5b

Fix double free bug when using go with struct arguments. Add a condition to vlib/v/gen/c/spawn_and_go.v to only free argument pointers for spawn expressions.

🤖 Generated by Copilot at 8b09e5b

  • Fix double free error when using go with a struct argument (link)

@medvednikov medvednikov merged commit af4ee6a into vlang:master Nov 6, 2023
55 checks passed
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