File: composewindowtype.c
Function: ComposeWindow_get_header_list
Error: dereferencing NULL (ee->ob_refcnt) at composewindowtype.c:272
251 static PyObject* ComposeWindow_get_header_list(clawsmail_ComposeWindowObject *self, PyObject *args)
252 {
253   GSList *walk;
254   PyObject *retval;
255 
256   retval = Py_BuildValue("[]");
257   for(walk = self->compose->header_list; walk; walk = walk->next) {
when Py_BuildValue() succeeds
258     ComposeHeaderEntry *headerentry = walk->data;
when treating unknown struct Compose * from composewindowtype.c:258 as non-NULL
when treating unknown struct GSList * from composewindowtype.c:258 as non-NULL
taking True path
259     const gchar *header;
260     const gchar *text;
261 
262     header = gtk_editable_get_chars(GTK_EDITABLE(gtk_bin_get_child(GTK_BIN(headerentry->combo))), 0, -1);
263     text = gtk_entry_get_text(GTK_ENTRY(headerentry->entry));
when treating unknown void * from composewindowtype.c:259 as non-NULL
264 
265     if(text && strcmp("", text)) {
266       PyObject *ee;
when treating unknown const gchar * from composewindowtype.c:264 as non-NULL
taking True path
taking True path
when considering range: -255 <= value <= -1
taking False path
taking True path
267       int ok;
268 
269       ee = Py_BuildValue("(ss)", header, text);
270       ok = PyList_Append(retval, ee);
when Py_BuildValue() fails
271       Py_DECREF(ee);
returning -1 from PyList_Append() due to NULL item
272       if(ok == -1) {
dereferencing NULL (ee->ob_refcnt) at composewindowtype.c:272
found 1 similar trace(s) to this
273         Py_DECREF(retval);
274         return NULL;
275       }
276     }
277   }
278   return retval;
279 }
280