These are allocated with new[] so they need to be freed with delete[]
Merge pull request #182 from cmaloney/fix_bad_free

These are allocated with new[] so they need to be freed with delete[]