File: krb5util.c
Function: dict_addint
Error: ob_refcnt of '*key' is 1 too high
3 void
4 dict_addint(PyObject *dict, PyObject *revdict, const char *name, long value)
5 {
6   PyObject *key, *val;
7   key = PyString_FromString(name);
when treating unknown const char * from krb5util.c:4 as non-NULL
when PyString_FromString() succeeds
PyStringObject allocated at:   key = PyString_FromString(name);
ob_refcnt is now refs: 1 + N where N >= 0
8   val = PyInt_FromLong(value);
when PyInt_FromLong() succeeds
9   PyDict_SetItem(dict, key, val);
when PyDict_SetItem() succeeds
10   PyDict_SetItem(revdict, val, key);
when PyDict_SetItem() succeeds
ob_refcnt is now refs: 1 + N where N >= 1
11 }
returning
ob_refcnt of '*key' 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 3 similar trace(s) to this

File: krb5util.c
Function: dict_addint
Error: ob_refcnt of '*val' is 1 too high
3 void
4 dict_addint(PyObject *dict, PyObject *revdict, const char *name, long value)
5 {
6   PyObject *key, *val;
7   key = PyString_FromString(name);
when treating unknown const char * from krb5util.c:4 as non-NULL
when PyString_FromString() succeeds
8   val = PyInt_FromLong(value);
when PyInt_FromLong() succeeds
PyIntObject allocated at:   val = PyInt_FromLong(value);
ob_refcnt is now refs: 1 + N where N >= 0
9   PyDict_SetItem(dict, key, val);
when PyDict_SetItem() succeeds
ob_refcnt is now refs: 1 + N where N >= 1
10   PyDict_SetItem(revdict, val, key);
when PyDict_SetItem() succeeds
11 }
returning
ob_refcnt of '*val' 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 3 similar trace(s) to this

File: krb5util.c
Function: dict_addint
Error: calling PyDict_SetItem with NULL as argument 3 (val) at krb5util.c:9
3 void
4 dict_addint(PyObject *dict, PyObject *revdict, const char *name, long value)
5 {
6   PyObject *key, *val;
7   key = PyString_FromString(name);
when treating unknown const char * from krb5util.c:4 as non-NULL
when PyString_FromString() succeeds
8   val = PyInt_FromLong(value);
when PyInt_FromLong() fails
9   PyDict_SetItem(dict, key, val);
calling PyDict_SetItem with NULL as argument 3 (val) at krb5util.c:9
PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt
10   PyDict_SetItem(revdict, val, key);
11 }

File: krb5util.c
Function: dict_addint
Error: calling PyDict_SetItem with NULL as argument 2 (key) at krb5util.c:9
3 void
4 dict_addint(PyObject *dict, PyObject *revdict, const char *name, long value)
5 {
6   PyObject *key, *val;
7   key = PyString_FromString(name);
when treating unknown const char * from krb5util.c:4 as non-NULL
when PyString_FromString() fails
8   val = PyInt_FromLong(value);
when PyInt_FromLong() succeeds
9   PyDict_SetItem(dict, key, val);
calling PyDict_SetItem with NULL as argument 2 (key) at krb5util.c:9
PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type
found 1 similar trace(s) to this
10   PyDict_SetItem(revdict, val, key);
11 }