GNU-style.
Some splint fixes (more to follow).
More splint.
Try to reduce mem leaks.