His contract with Milan expired on 30 June .
He was training with Brazilian outfit Flamengo in an effort to return to full fitness .
His contract with Milan expired on 30 June and he was training with Brazilian outfit Flamengo in an effort to return to full fitness .