Modified: freeswitch/trunk/src/mod/languages/mod_python/mod_python.c (15431 => 15432)
--- freeswitch/trunk/src/mod/languages/mod_python/mod_python.c 2009-11-11 16:59:25 UTC (rev 15431)
+++ freeswitch/trunk/src/mod/languages/mod_python/mod_python.c 2009-11-11 17:12:36 UTC (rev 15432)
@@ -187,6 +187,7 @@
// 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