Errors seen in LOGS/python-kerberos-1.1-8.1.fc17

This is a summary of errors seen when compiling with an experimental static analysis tool

Raw build logs can be seen here

Reference leaks

Code paths in which the reference count of an object is left too high, leading to memory leaks

src/kerberos.c authGSSClientInit ob_refcnt of '*pystate' is 1 too high
src/kerberos.c authGSSServerInit ob_refcnt of '*pystate' is 1 too high

Reference leak within initialization

Code paths in which the reference count of an object is left too high, but within an initialization routine, and thus likely to only happen once

src/kerberos.c initkerberos ob_refcnt of '*KrbException_class.1' is 1 too high
src/kerberos.c initkerberos ob_refcnt of '*BasicAuthException_class.2' is 1 too high
src/kerberos.c initkerberos ob_refcnt of '*PwdChangeException_class.5' is 1 too high
src/kerberos.c initkerberos ob_refcnt of '*GssException_class.6' is 1 too high
src/kerberos.c initkerberos ob_refcnt of PyIntObject is 1 too high

Returning (PyObject*)NULL without setting an exception

These messages are often false-positives: the analysis tool has no knowledge about internal API calls that can lead to an exception being set
src/kerberos.c authGSSClientInit returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSServerInit returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSClientStep returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSClientResponse returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSServerStep returning (PyObject*)NULL without setting an exception
src/kerberos.c checkPassword returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSClientUserName returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSClientUnwrap returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSServerUserName returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSServerResponse returning (PyObject*)NULL without setting an exception
src/kerberos.c changePassword returning (PyObject*)NULL without setting an exception
src/kerberos.c authGSSClientWrap returning (PyObject*)NULL without setting an exception
src/kerberos.c getServerPrincipalDetails returning (PyObject*)NULL without setting an exception

Implementation notes for gcc-with-cpychecker

The following "Py" functions were used but aren't yet explicitly handled by gcc-with-cpychecker