File: | src/_portaudiomodule.c |
Function: | _pyAudio_Stream_get_structVersion |
Error: | memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high |
980 static PyObject *
981 _pyAudio_Stream_get_structVersion(_pyAudio_Stream *self,
982 void *closure)
983 {
984 /* sanity check */
985 if (!_is_open(self)) {
when considering range: -0x80000000 <= value <= -1
taking False path
986 PyErr_SetObject(PyExc_IOError,
987 Py_BuildValue("(s,i)",
988 "Stream closed",
989 paBadStreamPtr));
990 return NULL;
991 }
992
993 if ((!self->streamInfo)) {
when treating unknown struct PaStreamInfo * from src/_portaudiomodule.c:993 as NULL
taking True path
994 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
995 Py_BuildValue("(s,i)",
996 "No StreamInfo available",
997 paBadStreamPtr));
998 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
999 }
1000
1001 return PyLong_FromLong(self->streamInfo->structVersion);
1002 }
File: | src/_portaudiomodule.c |
Function: | _pyAudio_Stream_get_structVersion |
Error: | memory leak: ob_refcnt of new ref from call to Py_BuildValue is 1 too high |
980 static PyObject *
981 _pyAudio_Stream_get_structVersion(_pyAudio_Stream *self,
982 void *closure)
983 {
984 /* sanity check */
985 if (!_is_open(self)) {
when considering value == (int)0 from src/_portaudiomodule.c:985
taking True path
986 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
987 Py_BuildValue("(s,i)",
988 "Stream closed",
989 paBadStreamPtr));
990 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
991 }
992
993 if ((!self->streamInfo)) {
994 PyErr_SetObject(PyExc_IOError,
995 Py_BuildValue("(s,i)",
996 "No StreamInfo available",
997 paBadStreamPtr));
998 return NULL;
999 }
1000
1001 return PyLong_FromLong(self->streamInfo->structVersion);
1002 }