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

possible memleak in example4.c? #21

Closed
crclark96 opened this issue Jul 7, 2018 · 1 comment
Closed

possible memleak in example4.c? #21

crclark96 opened this issue Jul 7, 2018 · 1 comment

Comments

@crclark96
Copy link
Contributor

hi, i really love this project and was reading through everything because it is so well written and easy to understand

i noticed in example 4 the possibility of a memory leak from the double *input and double *class variables since they are allocated memory with malloc on lines 35 and 36 but are not subsequently free'd after the test is complete

please let me know if i have overlooked something, but i believe this is correct

@codeplea
Copy link
Owner

codeplea commented Jul 7, 2018

Thanks for the kind words, and thanks for the improvement!

@codeplea codeplea closed this as completed Jul 7, 2018
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

2 participants