With his previous contract set to expire in 2018, Messi could have left Barca for free next summer had he not extended his deal.