Merge pull request #9 from peterkuma/master

Fix typo & malloc result check