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

clean up some leaks identified by an ASAN build #4354

Merged
merged 2 commits into from
Aug 10, 2021

Conversation

greglandrum
Copy link
Member

This fixes a few memory leaks identified by running the C++ tests in an ASAN build

@greglandrum greglandrum added bug Cleanup Code cleanup and refactoring labels Jul 23, 2021
@greglandrum greglandrum added this to the 2021_09_1 milestone Jul 23, 2021
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
@@ -35,7 +35,7 @@ class TautomerCatalogParams;
// typedef std::vector<ROMol*, std::string, std::string> tautomerTransform;
class RDKIT_MOLSTANDARDIZE_EXPORT TautomerTransform {
public:
ROMol* Mol;
ROMol* Mol = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could just make this a unique_ptr

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, we could, but that's a public API change (not necessarily tragic here because probably no one is using that public data member)
Is the benefit of that important enough to change the API?

@greglandrum
Copy link
Member Author

@bp-kelley : ok to merge this one?

@bp-kelley bp-kelley merged commit e32810c into rdkit:master Aug 10, 2021
@greglandrum greglandrum deleted the dev/asan_cleanup branch August 10, 2021 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Cleanup Code cleanup and refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants