Use delete[] to deallocate after new[] (#1107)

* Use delete[] to deallocate after new[]

* Fixup formatting with git-clang-format
1 file changed