Scan build on featurefile.c

Fixed some issues found by scan-build on featurefile.c.

There are still a few issues that I don't know what the intention of the concerned code.