self is dereffed (and passed as first arg), so it's known to be good.

func is returned from PyArg_ParseTuple and also dereffed.

Reported by Klocwork, #30 (self one at least).
This commit is contained in:
Neal Norwitz 2006-07-16 02:02:57 +00:00
parent ef02b9e144
commit ce5b3c3188
1 changed files with 2 additions and 2 deletions

View File

@ -2104,8 +2104,8 @@ Tkapp_CreateCommand(PyObject *selfptr, PyObject *args)
data = PyMem_NEW(PythonCmd_ClientData, 1);
if (!data)
return PyErr_NoMemory();
Py_XINCREF(self);
Py_XINCREF(func);
Py_INCREF(self);
Py_INCREF(func);
data->self = selfptr;
data->func = func;