File: _portaudiomodule.c
Function: pa_get_default_host_api
Error: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1245 static PyObject *
1246 pa_get_default_host_api(PyObject *self, PyObject *args)
1247 {
1248   PaHostApiIndex index;
1249 
1250   if (!PyArg_ParseTuple(args, ""))
when PyArg_ParseTuple() succeeds
taking False path
1251     return NULL;
1252 
1253   index = Pa_GetDefaultHostApi();
1254 
1255   if (index < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
1256 
1257 #ifdef VERBOSE
1258     fprintf(stderr, "An error occured while using the portaudio stream\n");
1259     fprintf(stderr, "Error number: %d\n", index);
1260     fprintf(stderr, "Error message: %s\n", Pa_GetErrorText(index));
1261 #endif
1262 
1263     PyErr_SetObject(PyExc_IOError,
when Py_BuildValue() succeeds
calling PyErr_SetObject()
new ref from call to Py_BuildValue allocated at:     PyErr_SetObject(PyExc_IOError,
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
1264 		    Py_BuildValue("(s,i)",
1265 				  Pa_GetErrorText(index), index));
1266     return NULL;
1267   }
1268 
1269   return PyInt_FromLong(index);
1270 }
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