COMP: Memory allocated with team should be free'd with free() rather than delete.