mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue