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

make errBuffer pointer, avoid memory bug by not using janet_buffer_init #2095

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

AlecTroemel
Copy link
Contributor

@AlecTroemel AlecTroemel commented Jan 24, 2023

suggestion comes from the creator of janet themselves!

The garbage collector will eventually try to call free(&errBuffer), which will segfault. janet_buffer_init is mean to be used with janet_buffer_deinit
-bakpakin

@AlecTroemel AlecTroemel marked this pull request as ready for review January 24, 2023 14:47
@nesbox nesbox merged commit 60f2840 into nesbox:main Jan 25, 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