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

maze.cpp and n_queen.cpp causes memory leak #298

Closed
null8626 opened this issue Oct 19, 2021 · 3 comments
Closed

maze.cpp and n_queen.cpp causes memory leak #298

null8626 opened this issue Oct 19, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@null8626
Copy link
Contributor

maze.cpp allocates two nested arrays with the new keyword. which means they are both dynamic pointers which won't be deleted when the program exits unless a delete keyword is used or if it's called with a free() function.

the program does not delete the two nested arrays before exiting, thus, causing a memory leak when it goes out of scope.

@null8626
Copy link
Contributor Author

same issue too with n_queen.cpp, line 77

@null8626 null8626 changed the title maze.cpp causes memory leak maze.cpp and n_queen.cpp causes memory leak Oct 19, 2021
@KartikeSingh
Copy link
Member

hmmm, we will look into it.
thank you for your report.

@rhygg rhygg added the bug Something isn't working label Oct 19, 2021
@rhygg
Copy link
Member

rhygg commented Feb 8, 2022

Inactive issue, closing.

@rhygg rhygg closed this as completed Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants