File: _portaudiomodule.c
Function: pa_get_sample_size
Error: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1749 static PyObject *
1750 pa_get_sample_size(PyObject *self, PyObject *args)
1751 {
1752   PaSampleFormat format;
1753   int size_in_bytes;
1754 
1755   if (!PyArg_ParseTuple(args, "k", &format))
when PyArg_ParseTuple() succeeds
taking False path
1756     return NULL;
1757 
1758   size_in_bytes = Pa_GetSampleSize(format);
1759 
1760   if (size_in_bytes < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
1761     PyErr_SetObject(PyExc_ValueError,
when Py_BuildValue() succeeds
calling PyErr_SetObject()
new ref from call to Py_BuildValue allocated at:     PyErr_SetObject(PyExc_ValueError,
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
1762 		    Py_BuildValue("(s,i)",
1763 				  Pa_GetErrorText(size_in_bytes),
1764 				  size_in_bytes));
1765     return NULL;
1766   }
1767 
1768   return PyInt_FromLong(size_in_bytes);
1769 }
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