Fix to use delete[] call to free memory allocated with new[]