File: pygstminiobject.c
Function: pygstminiobject_register_class
Error: ob_refcnt of '*type' is 1 too high
80 void
81 pygstminiobject_register_class(PyObject *dict, const gchar *type_name,
82 			 GType gtype, PyTypeObject *type,
83 			 PyObject *bases)
84 {
85     PyObject *o;
86     const char *class_name, *s;
87 
88     if (!pygstminiobject_class_key)
when considering range: 1 <= value <= 0xffffffff
taking False path
89 	pygstminiobject_class_key = g_quark_from_static_string(pygstminiobject_class_id);
90 
91     class_name = type->tp_name;
92     s = strrchr(class_name, '.');
93     if (s != NULL)
when treating unknown char * from pygstminiobject.c:92 as non-NULL
taking True path
94 	class_name = s + 1;
95     
96     type->ob_type = &PyType_Type;
97     type->tp_alloc = PyType_GenericAlloc;
98     type->tp_new = PyType_GenericNew;
99     if (bases) {
taking True path
100 	type->tp_bases = bases;
101 	type->tp_base = (PyTypeObject *)PyTuple_GetItem(bases, 0);
102     }
103 
104     if (PyType_Ready(type) < 0) {
when PyType_Ready() succeeds
taking False path
105 	g_warning ("couldn't make the type `%s' ready", type->tp_name);
106 	return;
returning
ob_refcnt of '*type' 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 17 similar trace(s) to this
107     }
108 
109     if (gtype) {
when considering range: 1 <= value <= 0xffffffffffffffffL
taking True path
110 	o = pyg_type_wrapper_new(gtype);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
111 	PyDict_SetItemString(type->tp_dict, "__gtype__", o);
when PyDict_SetItemString() succeeds
112 	Py_DECREF(o);
when taking True path
113 
114 	/* stash a pointer to the python class with the GType */
115 	Py_INCREF(type);
ob_refcnt is now refs: 1 + N where N >= 1
116 	g_type_set_qdata(gtype, pygstminiobject_class_key, type);
117     }
118 
119     PyDict_SetItemString(dict, (char *)class_name, (PyObject *)type);
when PyDict_SetItemString() succeeds
ob_refcnt is now refs: 1 + N where N >= 2
120 }

File: pygstminiobject.c
Function: pygstminiobject_register_class
Error: ob_refcnt of '*bases' is 1 too low
80 void
81 pygstminiobject_register_class(PyObject *dict, const gchar *type_name,
82 			 GType gtype, PyTypeObject *type,
83 			 PyObject *bases)
84 {
85     PyObject *o;
86     const char *class_name, *s;
87 
88     if (!pygstminiobject_class_key)
when considering range: 1 <= value <= 0xffffffff
taking False path
89 	pygstminiobject_class_key = g_quark_from_static_string(pygstminiobject_class_id);
90 
91     class_name = type->tp_name;
92     s = strrchr(class_name, '.');
93     if (s != NULL)
when treating unknown char * from pygstminiobject.c:92 as non-NULL
taking True path
94 	class_name = s + 1;
95     
96     type->ob_type = &PyType_Type;
97     type->tp_alloc = PyType_GenericAlloc;
98     type->tp_new = PyType_GenericNew;
99     if (bases) {
taking True path
100 	type->tp_bases = bases;
'*bases' is now referenced by 1 non-stack value(s): region-for-arg-gcc.ParmDecl('type').tp_bases
101 	type->tp_base = (PyTypeObject *)PyTuple_GetItem(bases, 0);
102     }
103 
104     if (PyType_Ready(type) < 0) {
when PyType_Ready() succeeds
taking False path
105 	g_warning ("couldn't make the type `%s' ready", type->tp_name);
106 	return;
returning
ob_refcnt of '*bases' is 1 too low
was expecting final ob_refcnt to be N + 1 (for some unknown N)
due to object being referenced by: region-for-arg-gcc.ParmDecl('type').tp_bases
but final ob_refcnt is N + 0
found 25 similar trace(s) to this
107     }
108 
109     if (gtype) {
when considering range: 1 <= value <= 0xffffffffffffffffL
taking True path
110 	o = pyg_type_wrapper_new(gtype);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
111 	PyDict_SetItemString(type->tp_dict, "__gtype__", o);
when PyDict_SetItemString() succeeds
112 	Py_DECREF(o);
when taking True path
113 
114 	/* stash a pointer to the python class with the GType */
115 	Py_INCREF(type);
116 	g_type_set_qdata(gtype, pygstminiobject_class_key, type);
117     }
118 
119     PyDict_SetItemString(dict, (char *)class_name, (PyObject *)type);
when PyDict_SetItemString() succeeds
120 }

File: pygstminiobject.c
Function: pygstminiobject_register_class
Error: ob_refcnt of borrowed reference returned by PyTuple_GetItem() is 1 too low
80 void
81 pygstminiobject_register_class(PyObject *dict, const gchar *type_name,
82 			 GType gtype, PyTypeObject *type,
83 			 PyObject *bases)
84 {
85     PyObject *o;
86     const char *class_name, *s;
87 
88     if (!pygstminiobject_class_key)
when considering range: 1 <= value <= 0xffffffff
taking False path
89 	pygstminiobject_class_key = g_quark_from_static_string(pygstminiobject_class_id);
90 
91     class_name = type->tp_name;
92     s = strrchr(class_name, '.');
93     if (s != NULL)
when treating unknown char * from pygstminiobject.c:92 as non-NULL
taking True path
94 	class_name = s + 1;
95     
96     type->ob_type = &PyType_Type;
97     type->tp_alloc = PyType_GenericAlloc;
98     type->tp_new = PyType_GenericNew;
99     if (bases) {
taking True path
100 	type->tp_bases = bases;
101 	type->tp_base = (PyTypeObject *)PyTuple_GetItem(bases, 0);
borrowed reference returned by PyTuple_GetItem() allocated at: 	type->tp_base = (PyTypeObject *)PyTuple_GetItem(bases, 0);
ob_refcnt is now refs: 0 + N where N >= 1
borrowed reference returned by PyTuple_GetItem() is now referenced by 1 non-stack value(s): region-for-arg-gcc.ParmDecl('type').tp_base
102     }
103 
104     if (PyType_Ready(type) < 0) {
when PyType_Ready() succeeds
taking False path
105 	g_warning ("couldn't make the type `%s' ready", type->tp_name);
106 	return;
returning
ob_refcnt of borrowed reference returned by PyTuple_GetItem() is 1 too low
was expecting final ob_refcnt to be N + 1 (for some unknown N)
due to object being referenced by: region-for-arg-gcc.ParmDecl('type').tp_base
but final ob_refcnt is N + 0
found 25 similar trace(s) to this
107     }
108 
109     if (gtype) {
when considering range: 1 <= value <= 0xffffffffffffffffL
taking True path
110 	o = pyg_type_wrapper_new(gtype);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
111 	PyDict_SetItemString(type->tp_dict, "__gtype__", o);
when PyDict_SetItemString() succeeds
112 	Py_DECREF(o);
when taking True path
113 
114 	/* stash a pointer to the python class with the GType */
115 	Py_INCREF(type);
116 	g_type_set_qdata(gtype, pygstminiobject_class_key, type);
117     }
118 
119     PyDict_SetItemString(dict, (char *)class_name, (PyObject *)type);
when PyDict_SetItemString() succeeds
120 }

File: pygstminiobject.c
Function: pygstminiobject_register_class
Error: calling PyDict_SetItemString with NULL as argument 3 (o) at pygstminiobject.c:111
80 void
81 pygstminiobject_register_class(PyObject *dict, const gchar *type_name,
82 			 GType gtype, PyTypeObject *type,
83 			 PyObject *bases)
84 {
85     PyObject *o;
86     const char *class_name, *s;
87 
88     if (!pygstminiobject_class_key)
when considering value == (GQuark)0 from pygstminiobject.c:28
taking True path
89 	pygstminiobject_class_key = g_quark_from_static_string(pygstminiobject_class_id);
90 
91     class_name = type->tp_name;
92     s = strrchr(class_name, '.');
93     if (s != NULL)
when treating unknown char * from pygstminiobject.c:92 as non-NULL
taking True path
94 	class_name = s + 1;
95     
96     type->ob_type = &PyType_Type;
97     type->tp_alloc = PyType_GenericAlloc;
98     type->tp_new = PyType_GenericNew;
99     if (bases) {
taking True path
100 	type->tp_bases = bases;
101 	type->tp_base = (PyTypeObject *)PyTuple_GetItem(bases, 0);
102     }
103 
104     if (PyType_Ready(type) < 0) {
when PyType_Ready() succeeds
taking False path
105 	g_warning ("couldn't make the type `%s' ready", type->tp_name);
106 	return;
107     }
108 
109     if (gtype) {
when considering range: 1 <= value <= 0xffffffffffffffffL
taking True path
110 	o = pyg_type_wrapper_new(gtype);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call fails
111 	PyDict_SetItemString(type->tp_dict, "__gtype__", o);
calling PyDict_SetItemString with NULL as argument 3 (o) at pygstminiobject.c:111
found 1 similar trace(s) to this
112 	Py_DECREF(o);
113 
114 	/* stash a pointer to the python class with the GType */
115 	Py_INCREF(type);
116 	g_type_set_qdata(gtype, pygstminiobject_class_key, type);
117     }
118 
119     PyDict_SetItemString(dict, (char *)class_name, (PyObject *)type);
120 }