Commit 0877a966 authored by Neal Norwitz's avatar Neal Norwitz

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).
parent 55814f49
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment