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

To INCHI conversion leaks on kekulization failure #5057

Merged
merged 1 commit into from
Mar 5, 2022

Conversation

ricrogz
Copy link
Contributor

@ricrogz ricrogz commented Mar 2, 2022

I noticed this while writing tests for an external project that uses RDKit.

A kekulization exception would cause MolToInchi() to return without cleaning up m. The smart pointer should now take care of cleaning it up whenever we leave the function.

Copy link
Member

@greglandrum greglandrum left a comment

Choose a reason for hiding this comment

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

Nice catch, simple fix.
LGTM!

@greglandrum greglandrum added the bug label Mar 5, 2022
@greglandrum greglandrum added this to the 2021_09_5 milestone Mar 5, 2022
@greglandrum greglandrum merged commit 76e8b2a into rdkit:master Mar 5, 2022
greglandrum pushed a commit that referenced this pull request Mar 5, 2022
@ricrogz ricrogz deleted the inchi_leaks branch March 5, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants