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

Implement a basic borrow checker to avoir memory leaks on struct instantiation #180

Open
Champii opened this issue Sep 1, 2023 · 0 comments

Comments

@Champii
Copy link
Owner

Champii commented Sep 1, 2023

We introduced heap allocated structs in #179 that uses the system provided malloc().
This introduces a memory leak for each struct instance, and must obviously be mitigated by inserting corresponding free() call when the struct is not used anymore.

This will be the first basic implementation that will not cover all use-cases nor be perfect, but will serve as a prototype that will shed light on the actual scope and features of this borrow checker.

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