Remove redundant NULL checks.

Remove NULL checks before free() because free(NULL) performs no operation.
Fix resource leak.

fclose() is missing.
Merge branch 'fix-resource-leak' of https://github.com/mnogu/sysstat

Close file descriptor before exit.
Merge branch 'remove-redundant-null-checks' of https://github.com/mnogu/sysstat