Louis, Those memos are the property of the government but the content of those memos aren’t. If some civil servant comes up with a park schedule, the document is the property of the government but the contents of the schedule are not secret and can be released to the public at any time.
In Comey’s testimony, he said that he was careful to make sure that the memos did not contain classified information. What he said in those memos were things that he could have said to the press immediately after those meetings without violating any law. In other words, Comey could have come out of his meeting with Trump and said, “the President just asked me to be loyal to him” and that would have been legal. He didn’t because that would have made for an even worse relationship with Trump.
I don’t see how you can possibly that that Comey, the head of the FBI and who is a long-time prosecutor, was not aware of the legality of his actions in releasing the contents of these memos. If there was any chance that what he did was illegal, he sure wouldn’t be so forthcoming with the fact that he was the reason that the contents of these memos became public.