File: foldertype.c
Function: clawsmail_folder_new
Error: returning (PyObject*)NULL without setting an exception
237 PyObject* clawsmail_folder_new(FolderItem *folderitem)
238 {
239   clawsmail_FolderObject *ff;
240   PyObject *arglist;
241   gchar *id;
242 
243   if(!folderitem)
244     return NULL;
when taking True path
245 
246   id = folder_item_get_identifier(folderitem);
247   arglist = Py_BuildValue("(s)", id);
248   g_free(id);
249   ff = (clawsmail_FolderObject*) PyObject_CallObject((PyObject*) &clawsmail_FolderType, arglist);
250   Py_DECREF(arglist);
251   return (PyObject*)ff;
252 }
253 
returning (PyObject*)NULL without setting an exception

File: foldertype.c
Function: clawsmail_folder_new
Error: dereferencing NULL (arglist->ob_refcnt) at foldertype.c:251
237 PyObject* clawsmail_folder_new(FolderItem *folderitem)
238 {
239   clawsmail_FolderObject *ff;
240   PyObject *arglist;
241   gchar *id;
242 
243   if(!folderitem)
244     return NULL;
when taking False path
245 
246   id = folder_item_get_identifier(folderitem);
247   arglist = Py_BuildValue("(s)", id);
248   g_free(id);
when Py_BuildValue() fails
249   ff = (clawsmail_FolderObject*) PyObject_CallObject((PyObject*) &clawsmail_FolderType, arglist);
250   Py_DECREF(arglist);
when PyObject_CallObject() succeeds
251   return (PyObject*)ff;
dereferencing NULL (arglist->ob_refcnt) at foldertype.c:251
found 1 similar trace(s) to this
252 }
253