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

Legacy-style usage of new/delete #37

Open
stuarteberg opened this issue Nov 22, 2017 · 0 comments
Open

Legacy-style usage of new/delete #37

stuarteberg opened this issue Nov 22, 2017 · 0 comments
Labels

Comments

@stuarteberg
Copy link
Member

In C++11, there's basically no excuse for using the delete keyword, ever. Similarly, we should never use new outside of the context of smart pointer construction.

In the event of an exception, the current version of the libdvid-cpp code base will leak memory in some places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant