Check returned pointer is valid.

Klocwork #233
This commit is contained in:
Neal Norwitz 2006-08-12 02:06:34 +00:00
parent b45f351832
commit 6b4953fd3d
5 changed files with 28 additions and 2 deletions

View file

@ -229,6 +229,15 @@ PyEval_InitThreads(void)
main_thread = PyThread_get_thread_ident();
}
void
_PyEval_FiniThreads(void)
{
if (interpreter_lock)
PyThread_free_lock(interpreter_lock);
interpreter_lock = 0;
main_thread = 0;
}
void
PyEval_AcquireLock(void)
{