Free memory in 2d array

In this video if I need to deallocate the memory used by the 2d array which was created. So I shd be using this cmd ryt “delete [] a” if I’m not wrong in order to avoid memory leak

yes @kartikey.rajput0071