Australia 's foreign minister says Japan has agreed to free two anti-whaling activists being held aboard a Japanese whaling vessel in Antarctic waters .