File: src/_portaudiomodule.c
Function: _pyAudio_Stream_get_outputLatency
Error: memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1029 static PyObject *
1030 _pyAudio_Stream_get_outputLatency(_pyAudio_Stream *self,
1031 				  void *closure)
1032 {
1033   /* sanity check */
1034   if (!_is_open(self)) {
when considering range: -0x80000000 <= value <= -1
taking False path
1035     PyErr_SetObject(PyExc_IOError,
1036 		    Py_BuildValue("(s,i)",
1037 				  "Stream closed",
1038 				  paBadStreamPtr));
1039     return NULL;
1040   }
1041 
1042   /* sanity check */
1043   if ((!self->streamInfo)) {
when treating unknown struct PaStreamInfo * from src/_portaudiomodule.c:1043 as NULL
taking True path
1044     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
1045 		    Py_BuildValue("(s,i)",
1046 				  "No StreamInfo available",
1047 				  paBadStreamPtr));
1048     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
1049   }
1050 
1051   return PyFloat_FromDouble(self->streamInfo->outputLatency);
1052 }

File: src/_portaudiomodule.c
Function: _pyAudio_Stream_get_outputLatency
Error: memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
1029 static PyObject *
1030 _pyAudio_Stream_get_outputLatency(_pyAudio_Stream *self,
1031 				  void *closure)
1032 {
1033   /* sanity check */
1034   if (!_is_open(self)) {
when considering value == (int)0 from src/_portaudiomodule.c:1034
taking True path
1035     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
1036 		    Py_BuildValue("(s,i)",
1037 				  "Stream closed",
1038 				  paBadStreamPtr));
1039     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
1040   }
1041 
1042   /* sanity check */
1043   if ((!self->streamInfo)) {
1044     PyErr_SetObject(PyExc_IOError,
1045 		    Py_BuildValue("(s,i)",
1046 				  "No StreamInfo available",
1047 				  paBadStreamPtr));
1048     return NULL;
1049   }
1050 
1051   return PyFloat_FromDouble(self->streamInfo->outputLatency);
1052 }