File: src/_portaudiomodule.c
Function: _pyAudio_Stream_get_inputLatency
Error: memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1004 static PyObject *
1005 _pyAudio_Stream_get_inputLatency(_pyAudio_Stream *self,
1006 				 void *closure)
1007 {
1008   /* sanity check */
1009   if (!_is_open(self)) {
when considering range: -0x80000000 <= value <= -1
taking False path
1010     PyErr_SetObject(PyExc_IOError,
1011 		    Py_BuildValue("(s,i)",
1012 				  "Stream closed",
1013 				  paBadStreamPtr));
1014     return NULL;
1015   }
1016 
1017   /* sanity check */
1018   if ((!self->streamInfo)) {
when treating unknown struct PaStreamInfo * from src/_portaudiomodule.c:1018 as NULL
taking True path
1019     PyErr_SetObject(PyExc_IOError,
when Py_BuildValue() succeeds
calling PyErr_SetObject()
new ref from call to Py_BuildValue was allocated at:     PyErr_SetObject(PyExc_IOError,
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
1020 		    Py_BuildValue("(s,i)",
1021 				  "No StreamInfo available",
1022 				  paBadStreamPtr));
1023     return NULL;
memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
was expecting final owned ob_refcnt of new ref from call to Py_BuildValue to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed
found 1 similar trace(s) to this
1024   }
1025 
1026   return PyFloat_FromDouble(self->streamInfo->inputLatency);
1027 }

File: src/_portaudiomodule.c
Function: _pyAudio_Stream_get_inputLatency
Error: memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1004 static PyObject *
1005 _pyAudio_Stream_get_inputLatency(_pyAudio_Stream *self,
1006 				 void *closure)
1007 {
1008   /* sanity check */
1009   if (!_is_open(self)) {
when considering value == (int)0 from src/_portaudiomodule.c:1009
taking True path
1010     PyErr_SetObject(PyExc_IOError,
when Py_BuildValue() succeeds
calling PyErr_SetObject()
new ref from call to Py_BuildValue was allocated at:     PyErr_SetObject(PyExc_IOError,
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
1011 		    Py_BuildValue("(s,i)",
1012 				  "Stream closed",
1013 				  paBadStreamPtr));
1014     return NULL;
memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
was expecting final owned ob_refcnt of new ref from call to Py_BuildValue to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed
1015   }
1016 
1017   /* sanity check */
1018   if ((!self->streamInfo)) {
1019     PyErr_SetObject(PyExc_IOError,
1020 		    Py_BuildValue("(s,i)",
1021 				  "No StreamInfo available",
1022 				  paBadStreamPtr));
1023     return NULL;
1024   }
1025 
1026   return PyFloat_FromDouble(self->streamInfo->inputLatency);
1027 }