提交 ef163214 authored 作者: Traun Leyden's avatar Traun Leyden

Fix contributed by Stas Shtin to stop a resource leak, see MODLANG-95

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11254 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 290daf15
......@@ -198,7 +198,10 @@ static void eval_some_python(const char *funcname, char *args, switch_core_sessi
}
if (tstate) {
// thread state must be cleared explicitly or we'll get memory leaks
PyThreadState_Clear(tstate);
PyEval_ReleaseThread(tstate);
PyThreadState_Delete(tstate);
}
done:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论