Fix allocation/deallocation mismatch
Merge pull request #6 from mscdex/master

Fix allocation/deallocation mismatch