提交 e22cbf43 authored 作者: Michael Jerris's avatar Michael Jerris

mod_python: fix memory leak (MODLANG-136)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15432 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 52c381a1
......@@ -187,6 +187,7 @@ static void eval_some_python(const char *funcname, char *args, switch_core_sessi
// invoke the handler
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Call python script \n");
result = PyEval_CallObjectWithKeywords(function, arg, (PyObject *) NULL);
Py_DECREF(function);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Finished calling python script \n");
// check the result and print out any errors
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论