| 511 | } |
| 512 | |
| 513 | void 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 | |
| 526 | void InterpreterSingleton::addType(PyTypeObject* Type, PyObject* Module, const char* Name) |
| 527 | { |