Dynamically alocate name of team

Allocate dynamically memory for the name of team and dealocate it when the team is deleted.