Errors seen in LOGS/python-psutil-0.4.1-2.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

psutil/_psutil_linux.c get_disk_partitions ob_refcnt of '*py_retlist' is 1 too high
psutil/_psutil_linux.c get_disk_partitions ob_refcnt of '*py_retlist' is 1 too high

Segfaults within error-handling paths

Code paths in error-handling that will lead to a segmentatation fault (e.g. under low memory conditions)

psutil/_psutil_linux.c get_disk_partitions calling PyList_Append with NULL as argument 1 (py_retlist) at psutil/_psutil_linux.c:125
psutil/_psutil_linux.c get_disk_partitions calling PyList_Append with NULL as argument 1 (py_retlist) at psutil/_psutil_linux.c:125

Implementation notes for gcc-with-cpychecker

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