Former Liverpool striker Divock Origi will be available as a free agent in January after agreeing to terminate his contract with AC Milan.