[mt650] Fix memleak introduced with terrain swapping due to wrong cherry pick.