Journalist freed after 18 days detention in libel case