File: src/_portaudiomodule.c
Function: pa_get_sample_size
Error: memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1947 static PyObject *
1948 pa_get_sample_size(PyObject *self, PyObject *args)
1949 {
1950   PaSampleFormat format;
1951   int size_in_bytes;
1952 
1953   if (!PyArg_ParseTuple(args, "k", &format))
when PyArg_ParseTuple() succeeds
taking False path
1954     return NULL;
1955 
1956   size_in_bytes = Pa_GetSampleSize(format);
1957 
1958   if (size_in_bytes < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
1959     PyErr_SetObject(PyExc_ValueError,
when Py_BuildValue() succeeds
calling PyErr_SetObject()
new ref from call to Py_BuildValue was allocated at:     PyErr_SetObject(PyExc_ValueError,
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
1960 		    Py_BuildValue("(s,i)",
1961 				  Pa_GetErrorText(size_in_bytes),
1962 				  size_in_bytes));
1963     return NULL;
1964   }
1965 
1966   return PyLong_FromLong(size_in_bytes);
1967 }