Is this a leaker?
Arinté
shouldbe at message.com
Fri Jun 30 09:00:44 EDT 2000
Let me expand this a little more
PyObject* deqme(Py_BuildValue("i",0));
PyObject* comm=PyObject_GetItem(args, deqme);
Py_XDECREF(deqme);
comm isn't decref until later should I wait to decref deqme after I do
comm??
Also, here is a painful question Who is responsible for
return Py_BuildValue("i",0);
I skimmed thru python's source and it seems they Incref's on return values
so now it seems it is leaked.
Thanks
jamarijr at thomail.com
tho = hot.
"Arinté" <shouldbe at message.com> wrote in message
news:GH075.17918$NP5.455672 at newsread2.prod.itd.earthlink.net...
> comm =PyObject_GetItem(args, Py_BuildValue("i",2) );
> Is the Py_BuildValue leaking, because I don't save a pointer to the return
> value and decref it? You should Decref comm too right?
>
> Thanks,
> Maybe I should change my name to major payne.
>
>
>
More information about the Python-list
mailing list