MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / cleanupModules

Method cleanupModules

src/Base/Interpreter.cpp:513–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void InterpreterSingleton::cleanupModules()
514{
515 // This is only needed to make the address sanitizer happy
516#if defined(__has_feature)
517# if __has_feature(address_sanitizer)
518 for (auto it : _modules) {
519 delete it;
520 }
521 _modules.clear();
522# endif
523#endif
524}
525
526void InterpreterSingleton::addType(PyTypeObject* Type, PyObject* Module, const char* Name)
527{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected