A French court has ordered the release from police custody of a former legal adviser to disgraced former world athletics head Lamine Diack, his lawyers said on Monday.