Fixed a calloc getting freed before being used
Merge pull request #13 from stqism/master

Fixed a calloc getting freed before being used