mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
fix inchi conversion leak 1 (#8291)
This commit is contained in:
committed by
GitHub
parent
cfffa8db4d
commit
55dc5c73e3
1
External/INCHI-API/inchi.cpp
vendored
1
External/INCHI-API/inchi.cpp
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user