File: header-py.c
Function: hdr_dsFromHeader
Error: ob_refcnt of new ref from call to Py_BuildValue is 1 too high
301 /* Backwards compatibility. Flags argument is just a dummy and discarded. */
302 static PyObject * hdr_dsFromHeader(PyObject * s, PyObject * args, PyObject * kwds)
303 {
304     rpmTagVal tag = RPMTAG_REQUIRENAME;
305     rpmsenseFlags flags = 0;
306     char * kwlist[] = {"to", "flags", NULL};
307     if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O&i:dsFromHeader", kwlist,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
308             tagNumFromPyObject, &tag, &flags))
309         return NULL;
310 
311     return PyObject_Call((PyObject *) &rpmds_Type,
when Py_BuildValue() succeeds
when PyObject_Call() succeeds
new ref from call to Py_BuildValue allocated at:     return PyObject_Call((PyObject *) &rpmds_Type,
ob_refcnt is now refs: 1 + N where N >= 0
312 			 Py_BuildValue("(Oi)", s, tag), NULL);
313 }
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 1 similar trace(s) to this

File: header-py.c
Function: hdr_dsFromHeader
Error: calling PyObject_Call with NULL as argument 2 (D.17735) at header-py.c:311
301 /* Backwards compatibility. Flags argument is just a dummy and discarded. */
302 static PyObject * hdr_dsFromHeader(PyObject * s, PyObject * args, PyObject * kwds)
303 {
304     rpmTagVal tag = RPMTAG_REQUIRENAME;
305     rpmsenseFlags flags = 0;
306     char * kwlist[] = {"to", "flags", NULL};
307     if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O&i:dsFromHeader", kwlist,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
308             tagNumFromPyObject, &tag, &flags))
309         return NULL;
310 
311     return PyObject_Call((PyObject *) &rpmds_Type,
when Py_BuildValue() fails
calling PyObject_Call with NULL as argument 2 (D.17735) at header-py.c:311
312 			 Py_BuildValue("(Oi)", s, tag), NULL);
313 }