mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Fix memory leaks (#8298)
This commit is contained in:
@@ -62,7 +62,7 @@ void addFingerprintToRGroupData(RGroupData *rgroupData) {
|
||||
try {
|
||||
MolOps::sanitizeMol(mol);
|
||||
} catch (MolSanitizeException &) {
|
||||
BOOST_LOG(rdWarningLog)
|
||||
BOOST_LOG(rdDebugLog)
|
||||
<< "Failed to sanitize RGroup fingerprint mol for "
|
||||
<< rgroupData->smiles << std::endl;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,19 @@ namespace std {
|
||||
%template(PipelineLog) std::vector<RDKit::MolStandardize::PipelineLogEntry>;
|
||||
}
|
||||
|
||||
%newobject RDKit::MolStandardize::cleanup;
|
||||
%newobject RDKit::MolStandardize::normalize;
|
||||
%newobject RDKit::MolStandardize::reionize;
|
||||
%newobject RDKit::MolStandardize::removeFragments;
|
||||
%newobject RDKit::MolStandardize::canonicalTautomer;
|
||||
%newobject RDKit::MolStandardize::tautomerParent;
|
||||
%newobject RDKit::MolStandardize::fragmentParent;
|
||||
%newobject RDKit::MolStandardize::stereoParent;
|
||||
%newobject RDKit::MolStandardize::isotopeParent;
|
||||
%newobject RDKit::MolStandardize::chargeParent;
|
||||
%newobject RDKit::MolStandardize::superParent;
|
||||
%newobject RDKit::MolStandardize::disconnectOrganometallics;
|
||||
|
||||
%include <GraphMol/MolStandardize/MolStandardize.h>
|
||||
|
||||
%include "enums.swg"
|
||||
|
||||
Reference in New Issue
Block a user