PyObject *result = PyEval_CallObject(convertFunc, convertFuncArgs);
if (result == NULL)
{
+ if (service_name)
+ Py_DECREF(service_name);
if (nowTime)
Py_DECREF(nowTime);
Py_DECREF(convertFuncArgs);
+ Py_DECREF(dest_list);
return result;
}
PyList_Append(dest_list, result);
+ Py_DECREF(result);
}
else
{
PyObject *tuple = PyTuple_New(argcount);
fillTuple(tuple, argstring, argcount, service, ptr, nowTime, service_name);
PyList_Append(dest_list, tuple);
+ Py_DECREF(tuple);
}
return 0;
}