Free unused memory in formTeams