Re: [capi-sig] Does Py_False or Py_True need de-referencing if used in a PyObject_Compare?
13 Dec
2012
13 Dec
'12
10:27 p.m.
Well, from what I have gathered, the reference count does not need to be maintain as far as PyBool objects go. It seem to be fine even if the object is set from a argument. Hmmm...
On Thu, Dec 13, 2012 at 11:21 AM, Robert Steckroth < robertsteckroth@gmail.com> wrote:
Does the below statement have a memory leak?
if ( PyObject_Compare(update_var, Py_False)
Do I need to assign the Py_False first and DECREF it, or is the above snippet ok alone.
-- Bust0ut, Surgemcgee: Systems Engineer --- surgemcgee.com Django_Teamplate3d
-- Bust0ut, Surgemcgee: Systems Engineer --- surgemcgee.com Django_Teamplate3d
4146
Age (days ago)
4146
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Steckroth