Court frees Indian journalist held on terrorism charges