File: gst.c
Function: _wrap_gst_xml_write
Error: ob_refcnt of '*xml' is 1 too high
27600 static PyObject *
27601 _wrap_gst_xml_write(PyObject *self, PyObject *args, PyObject *kwargs)
27602 {
27603     static char *kwlist[] = { "element", NULL };
27604     PyGObject *element;
27605     PyObject *xml = _gst_get_libxml2_module(), *xargs, *xobj, *o;
when _gst_get_libxml2_module() succeeds
new ref from (unknown) _gst_get_libxml2_module allocated at:     PyObject *xml = _gst_get_libxml2_module(), *xargs, *xobj, *o;
ob_refcnt is now refs: 1 + N where N >= 0
27606     xmlDocPtr ret;
27607 
27608     if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:xml_write", kwlist, &PyGstElement_Type, &element))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
27609         return NULL;
27610     if(xml == NULL) return NULL;
taking False path
27611     pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
27612     ret = gst_xml_write(GST_ELEMENT(element->obj));
27613     pyg_end_allow_threads;
when considering range: 1 <= value <= 0x7fffffff
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
27614     xargs = PyTuple_New(1);
when PyTuple_New() succeeds
27615     xobj = PyObject_GetAttrString(xml, "xmlDoc");
when PyObject_GetAttrString() succeeds
27616     o = libxml_xmlDocPtrWrap(ret);
when libxml_xmlDocPtrWrap() fails
27617     PyTuple_SetItem(xargs, 0, o);
when PyTuple_SetItem() succeeds
27618     return PyInstance_New(xobj, xargs, PyDict_New());
when PyDict_New() succeeds
when PyInstance_New() succeeds
27619 
27620 }
ob_refcnt of '*xml' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 36 similar trace(s) to this

File: gst.c
Function: _wrap_gst_xml_write
Error: ob_refcnt of '*xargs' is 1 too high
27600 static PyObject *
27601 _wrap_gst_xml_write(PyObject *self, PyObject *args, PyObject *kwargs)
27602 {
27603     static char *kwlist[] = { "element", NULL };
27604     PyGObject *element;
27605     PyObject *xml = _gst_get_libxml2_module(), *xargs, *xobj, *o;
when _gst_get_libxml2_module() succeeds
27606     xmlDocPtr ret;
27607 
27608     if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:xml_write", kwlist, &PyGstElement_Type, &element))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
27609         return NULL;
27610     if(xml == NULL) return NULL;
taking False path
27611     pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
27612     ret = gst_xml_write(GST_ELEMENT(element->obj));
27613     pyg_end_allow_threads;
when considering range: 1 <= value <= 0x7fffffff
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
27614     xargs = PyTuple_New(1);
when PyTuple_New() succeeds
PyTupleObject allocated at:     xargs = PyTuple_New(1);
ob_refcnt is now refs: 1 + N where N >= 0
27615     xobj = PyObject_GetAttrString(xml, "xmlDoc");
when PyObject_GetAttrString() succeeds
27616     o = libxml_xmlDocPtrWrap(ret);
when libxml_xmlDocPtrWrap() fails
27617     PyTuple_SetItem(xargs, 0, o);
when PyTuple_SetItem() succeeds
27618     return PyInstance_New(xobj, xargs, PyDict_New());
when PyDict_New() succeeds
when PyInstance_New() succeeds
27619 
27620 }
ob_refcnt of '*xargs' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 36 similar trace(s) to this

File: gst.c
Function: _wrap_gst_xml_write
Error: ob_refcnt of '*xobj' is 1 too high
27600 static PyObject *
27601 _wrap_gst_xml_write(PyObject *self, PyObject *args, PyObject *kwargs)
27602 {
27603     static char *kwlist[] = { "element", NULL };
27604     PyGObject *element;
27605     PyObject *xml = _gst_get_libxml2_module(), *xargs, *xobj, *o;
when _gst_get_libxml2_module() succeeds
27606     xmlDocPtr ret;
27607 
27608     if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:xml_write", kwlist, &PyGstElement_Type, &element))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
27609         return NULL;
27610     if(xml == NULL) return NULL;
taking False path
27611     pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
27612     ret = gst_xml_write(GST_ELEMENT(element->obj));
27613     pyg_end_allow_threads;
when considering range: 1 <= value <= 0x7fffffff
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
27614     xargs = PyTuple_New(1);
when PyTuple_New() succeeds
27615     xobj = PyObject_GetAttrString(xml, "xmlDoc");
when PyObject_GetAttrString() succeeds
new ref from call to PyObject_GetAttrString allocated at:     xobj = PyObject_GetAttrString(xml, "xmlDoc");
ob_refcnt is now refs: 1 + N where N >= 0
27616     o = libxml_xmlDocPtrWrap(ret);
when libxml_xmlDocPtrWrap() fails
27617     PyTuple_SetItem(xargs, 0, o);
when PyTuple_SetItem() succeeds
27618     return PyInstance_New(xobj, xargs, PyDict_New());
when PyDict_New() succeeds
when PyInstance_New() succeeds
27619 
27620 }
ob_refcnt of '*xobj' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 20 similar trace(s) to this

File: gst.c
Function: _wrap_gst_xml_write
Error: ob_refcnt of PyDictObject is 1 too high
27600 static PyObject *
27601 _wrap_gst_xml_write(PyObject *self, PyObject *args, PyObject *kwargs)
27602 {
27603     static char *kwlist[] = { "element", NULL };
27604     PyGObject *element;
27605     PyObject *xml = _gst_get_libxml2_module(), *xargs, *xobj, *o;
when _gst_get_libxml2_module() succeeds
27606     xmlDocPtr ret;
27607 
27608     if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:xml_write", kwlist, &PyGstElement_Type, &element))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
27609         return NULL;
27610     if(xml == NULL) return NULL;
taking False path
27611     pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
27612     ret = gst_xml_write(GST_ELEMENT(element->obj));
27613     pyg_end_allow_threads;
when considering range: 1 <= value <= 0x7fffffff
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
27614     xargs = PyTuple_New(1);
when PyTuple_New() succeeds
27615     xobj = PyObject_GetAttrString(xml, "xmlDoc");
when PyObject_GetAttrString() succeeds
27616     o = libxml_xmlDocPtrWrap(ret);
when libxml_xmlDocPtrWrap() fails
27617     PyTuple_SetItem(xargs, 0, o);
when PyTuple_SetItem() succeeds
27618     return PyInstance_New(xobj, xargs, PyDict_New());
when PyDict_New() succeeds
when PyInstance_New() succeeds
PyDictObject allocated at:     return PyInstance_New(xobj, xargs, PyDict_New());
ob_refcnt is now refs: 1 + N where N >= 0
27619 
27620 }
ob_refcnt of PyDictObject is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 18 similar trace(s) to this

File: gst.c
Function: _wrap_gst_xml_write
Error: calling PyTuple_SetItem with NULL as argument 1 (xargs) at gst.c:27617
27600 static PyObject *
27601 _wrap_gst_xml_write(PyObject *self, PyObject *args, PyObject *kwargs)
27602 {
27603     static char *kwlist[] = { "element", NULL };
27604     PyGObject *element;
27605     PyObject *xml = _gst_get_libxml2_module(), *xargs, *xobj, *o;
when _gst_get_libxml2_module() succeeds
27606     xmlDocPtr ret;
27607 
27608     if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:xml_write", kwlist, &PyGstElement_Type, &element))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
27609         return NULL;
27610     if(xml == NULL) return NULL;
taking False path
27611     pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
27612     ret = gst_xml_write(GST_ELEMENT(element->obj));
27613     pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
27614     xargs = PyTuple_New(1);
when PyTuple_New() fails
27615     xobj = PyObject_GetAttrString(xml, "xmlDoc");
when PyObject_GetAttrString() succeeds
27616     o = libxml_xmlDocPtrWrap(ret);
when libxml_xmlDocPtrWrap() succeeds
27617     PyTuple_SetItem(xargs, 0, o);
calling PyTuple_SetItem with NULL as argument 1 (xargs) at gst.c:27617
PyTuple_SetItem() invokes Py_TYPE() on the pointer via the PyTuple_Check() macro, thus accessing (NULL)->ob_type
found 7 similar trace(s) to this
27618     return PyInstance_New(xobj, xargs, PyDict_New());
27619 
27620 }