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

Add memory freeing functions #22

Closed
duck2 opened this issue Jul 22, 2019 · 1 comment
Closed

Add memory freeing functions #22

duck2 opened this issue Jul 22, 2019 · 1 comment

Comments

@duck2
Copy link
Member

duck2 commented Jul 22, 2019

Currently, the generated code allocates arenas for elements and strdups some strings, but there is no function to free the memory. Add a freeing function so that people can release the generated structures.

@duck2
Copy link
Member Author

duck2 commented Aug 7, 2019

We can clear_pools() now, but we still can't free the memory allocated with strdup.

@duck2 duck2 closed this as completed Aug 7, 2019
@duck2 duck2 reopened this Aug 7, 2019
@duck2 duck2 closed this as completed Aug 10, 2019
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

No branches or pull requests

1 participant