Delete dynamically allocated memory

In the above code, why didn’t we delete dynamically allocated array?