fix inchi conversion leak 1 (#8291)

This commit is contained in:
Ricardo Rodriguez
2025-02-24 11:14:38 -05:00
committed by GitHub
parent cfffa8db4d
commit 55dc5c73e3

View File

@@ -1367,6 +1367,7 @@ RWMol *InchiToMol(const std::string &inchi, ExtraInchiReturnValues &rv,
BOOST_LOG(rdErrorLog) << "illegal bond type ("
<< (unsigned int)inchiAtom->bond_type[b]
<< ") in InChI" << std::endl;
FreeStructFromINCHI(&inchiOutput);
delete m;
return nullptr;
}