fix Coverity issues

This commit is contained in:
wmayer
2016-09-03 14:51:28 +02:00
parent 9ed53fea38
commit 3c88edd007
4 changed files with 17 additions and 15 deletions

View File

@@ -40,8 +40,10 @@ PP_Run_Method(PyObject *pobject, const char *method,
Py_Initialize(); /* init if first time */
pmeth = PyObject_GetAttrString(pobject, method);
if (pmeth == NULL) /* get callable object */
if (pmeth == NULL) { /* get callable object */
va_end(argslist);
return -1; /* bound method? has self */
}
/* handle zero args different */
// if(resfmt == 0 || strcmp(resfmt,"") == 0)
// pargs = Py_BuildValue("()");