Darrell Anderson and his wife Gail Greer leave a news conference on Tuesday. His lawyer said Friday that he has been released by the military and won't be court-martialed. ((Patti Longmire/Associated Press))

A 24-year-old soldier who fled to Canada after serving in Iraq has been released by U.S. military officials and won't face a court martial, his lawyer said Friday.

Jim Fennerty told the Lexington Herald-Leader in Kentucky that Darrell Anderson would be on extended leave for a month and then would receive a discharge other than honourable.

Anderson returned to the Fort Knox, Ky., base Tuesday after spending nearly two years in Canada.

"I feel that by resisting I made up for the things I did in Iraq," he said upon his return. "I feel I made up for the sins I committed in this war."

Anderson returned to Kentucky with his wife, Gail Greer of Timmins, Ont.

He served seven months in Iraq with the 1st Armoured Division, a stint that included guarding police stations in Baghdad. He received a Purple Heart after being wounded by a roadside bomb.

Anderson grew disillusioned with the war and has said he did not receive adequate emotional counselling after being injured.

When ordered to redeploy to Iraq he fled across the border at Niagara Falls in January 2005, before settling in Toronto.

Anderson attempted to file a refugee claim to remain in Canada, but missed an application deadline.