mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Clear current thread state before destroying the thread state object.
This commit is contained in:
parent
413f81c29d
commit
4a89f69990
@ -40,6 +40,8 @@ PythonInterpreter::~PythonInterpreter(void)
|
||||
{
|
||||
PyEval_AcquireLock();
|
||||
|
||||
(void) PyThreadState_Swap(NULL);
|
||||
|
||||
PyThreadState_Clear(m_ThreadState);
|
||||
PyThreadState_Delete(m_ThreadState);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user