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

free called on memory allocated by new #4

Open
rcrandall opened this issue Apr 15, 2018 · 0 comments
Open

free called on memory allocated by new #4

rcrandall opened this issue Apr 15, 2018 · 0 comments

Comments

@rcrandall
Copy link

free(activation);

Calling free on memory allocated by new results in undefined behavior, this is not safe. This should be replaced with
delete[] activation;
and similarly for the other locations where free is called.

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