960 static PyObject *
961 _pyAudio_Stream_get_structVersion(_pyAudio_Stream *self,
962 void *closure)
963 {
964 /* sanity check */
965 if (!_is_open(self)) {
when considering range: -0x80000000 <= value <= -1
taking False path
966 PyErr_SetObject(PyExc_IOError,
967 Py_BuildValue("(s,i)",
968 "Stream closed",
969 paBadStreamPtr));
970 return NULL;
971 }
972
973 if ((!self->streamInfo)) {
when treating unknown struct PaStreamInfo * from _portaudiomodule.c:973 as NULL
taking True path
974 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
975 Py_BuildValue("(s,i)",
976 "No StreamInfo available",
977 paBadStreamPtr));
978 return NULL;
979 }
980
981 return PyInt_FromLong(self->streamInfo->structVersion);
982 }
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
found 2 similar trace(s) to this