Typo.
Indicate file read error.
Handle return value strictly.
Free allocated memory.