I elaborate here: https://news.ycombinator.com/item?id=50472894
Him doing that is not criminally treasonous (although if influenced by a spy there might be some sort of crime; if he knew she was a spy then it might be criminally treasonous). I say it solely in non-legal, subjective, moral terms.