File: shout.c
Function: pshoutobj_initattrs
Error: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
293 static void pshoutobj_initattrs(PyObject* self) {
294   shout_t* conn = ((ShoutObject*)self)->conn;
295   int val, i;
296 
297   pshoutobj_setattr(self, "host", Py_BuildValue("s", shout_get_host(conn)));
298   pshoutobj_setattr(self, "port", Py_BuildValue("i", shout_get_port(conn)));
when Py_BuildValue() succeeds
new ref from call to Py_BuildValue allocated at:   pshoutobj_setattr(self, "host", Py_BuildValue("s", shout_get_host(conn)));
ob_refcnt is now refs: 1 + N where N >= 0
299   pshoutobj_setattr(self, "user", Py_BuildValue("s", shout_get_user(conn)));
when Py_BuildValue() succeeds
300   pshoutobj_setattr(self, "password", Py_BuildValue(""));
when Py_BuildValue() succeeds
301   pshoutobj_setattr(self, "mount", Py_BuildValue(""));
when Py_BuildValue() succeeds
302   pshoutobj_setattr(self, "name", Py_BuildValue(""));
when Py_BuildValue() succeeds
303   pshoutobj_setattr(self, "url", Py_BuildValue(""));
when Py_BuildValue() succeeds
304   pshoutobj_setattr(self, "genre", Py_BuildValue(""));
when Py_BuildValue() succeeds
305   pshoutobj_setattr(self, "description", Py_BuildValue(""));
when Py_BuildValue() succeeds
306   pshoutobj_setattr(self, "audio_info", Py_BuildValue(""));
when Py_BuildValue() succeeds
307   pshoutobj_setattr(self, "dumpfile", Py_BuildValue(""));  
when Py_BuildValue() succeeds
308   pshoutobj_setattr(self, "agent", Py_BuildValue("s", shout_get_agent(conn)));
when Py_BuildValue() succeeds
309   pshoutobj_setattr(self, "protocol", Py_BuildValue(""));
when Py_BuildValue() succeeds
310   pshoutobj_setattr(self, "nonblocking", shout_get_nonblocking(conn) ? Py_True : Py_False);
when Py_BuildValue() succeeds
311   pshoutobj_setattr(self, "format", Py_BuildValue(""));
when considering value == (unsigned int)0 from shout.c:311
taking False path
312 
when Py_BuildValue() fails
313   val = shout_get_protocol(conn);
314   for (i = 0; ShoutProtocolMap[i].name; i++)
315     if (ShoutProtocolMap[i].val == val) {
when treating unknown const char * from shout.c:315 as non-NULL
taking True path
316       pshoutobj_setattr(self, "protocol", Py_BuildValue("s", ShoutProtocolMap[i].name));
when taking True path
317       break;
when Py_BuildValue() succeeds
318     }
319 
320   val = shout_get_format(conn);
321   for (i = 0; ShoutFormatMap[i].name; i++)
322     if (ShoutFormatMap[i].val == val) {
when treating unknown const char * from shout.c:322 as non-NULL
taking True path
323       pshoutobj_setattr(self, "format", Py_BuildValue("s", ShoutFormatMap[i].name));
when taking True path
324       break;
when Py_BuildValue() succeeds
325     }
326 }
327 
returning ob_refcnt of new ref from call to Py_BuildValue 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 288 similar trace(s) to this