President Trump defended fired national security advisor Michael Flynn on Friday after the release of memos from fired FBI director James Comey portrayed the president as questioning Flynns judgment.

"So General Michael Flynn’s life can be totally destroyed while Shadey James Comey can Leak and Lie and make lots of money from a third rate book (that should never have been written)," Trump tweeted. "Is that really the way life in America is supposed to work? I don’t think so!"

The president appears to have misspelled the word "shady."

Comey – in the memos sent to Congress Thursday, his new book released Tuesday, and testimony before Congress last year – said that Trump tried to get him to shut down the FBIs investigation of Flynn. That claim is one of the factors in an obstruction of justice investigation being conducted by special counsel Robert Mueller.

The president, who fired Flynn less than a month after taking office in 2017, had criticized the ex-national security advisor in later conversations with Comey, according to the memos Comey wrote at the time.

"The guy has serious judgment issues," Trump said of Flynn at one point, according to one of the memos, which were swiftly leaked to reporters Thursday night.

Flynn is a key figure in Muellers investigation of possible links between Trumps 2016 campaign and Russians who sought to influence the election by hacking emails and spreading fake news.

The former national security advisor pleaded guilty to lying to the FBI about contacts with a Russian official. Flynn is now cooperating with prosecutors.

After the memos were released, Trump complained that they contained classified information, but also claimed a tweet that they proved there was "NO COLLUSION" with Russia and "NO OBSTRUCTION" of the investigation.

Rep. Adam Schiff, D-Calif., top Democrat on the House Intelligence Committee, responded to Trump by tweeting that the Comey memos "do not discuss collusion, Mr. President."

He added: "But they do show you clearing the room and asking Director Comey to drop the Flynn case. Along with your repeated requests for loyalty and to lift the cloud, this is all evidence of potential obstruction."

In his book and in his recent interviews, Comey has likened Trump to a mob boss and said he is morally unfit to be president.