Errors seen in LOGS/pyhunspell-0.1-6.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

hunspell.c HunSpell_stem ob_refcnt of new ref from call to Py_BuildValue is 1 too high
hunspell.c HunSpell_suggest ob_refcnt of new ref from call to Py_BuildValue is 1 too high
hunspell.c HunSpell_generate ob_refcnt of new ref from call to Py_BuildValue is 1 too high
hunspell.c HunSpell_analyze ob_refcnt of new ref from call to Py_BuildValue 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)

hunspell.c HunSpell_stem calling PyList_Append with NULL as argument 1 (slist_list) at hunspell.c:130
hunspell.c HunSpell_suggest calling PyList_Append with NULL as argument 1 (slist_list) at hunspell.c:88
hunspell.c HunSpell_generate calling PyList_Append with NULL as argument 1 (slist_list) at hunspell.c:151
hunspell.c HunSpell_analyze calling PyList_Append with NULL as argument 1 (slist_list) at hunspell.c:109