This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: Patch to add rtti_type member to gdb.Value
>>>>> "Richard" == Richard Ward <richard.j.ward1@googlemail.com> writes:
Richard> I'll look at the other points later when I have time, but In this case
Richard> if Py_None is used it will be incremented twice before being handed
Richard> back to the caller.
Yeah -- once for the store to obj->type, and once for the caller.
The caller needs a new reference, always.
For obj->type, this lets us call Py_DECREF without checking whether
obj->type is None.
Tom