Errors seen in LOGS/cmusphinx3-0.8-10.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

_sphinx3module.c sphinx3_get_hypothesis ob_refcnt of '*hypseg_obj' is 1 too high
_sphinx3module.c sphinx3_get_hypothesis ob_refcnt of '*hypstr_obj' 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)

_sphinx3module.c sphinx3_get_hypothesis dereferencing NULL (MEM[(struct PyTupleObject *)hypseg_obj].ob_item) at _sphinx3module.c:207