[No reviewer required] Fix mismatched new[]/delete

Fixing a valgrind flagged error, using delete when delete[] was required.