Yep it depends on the loan that you have.
Some have early repyament fees (even when you transfer/port the loan withint he same bank), others dont.

can you say what type of loan you have, which bank etc? SOme have the infor available online so you might be able to find it.
It should also be in your loan contract for the current house if there are fees for early release of mortgagte.