Two men who were wanted on Canada-wide warrants for being unlawfully at large have been arrested in Moncton, say RCMP.

Cody Melanson, 26, and David O'Connell, 38, are both accused of violating the conditions of their release from federal prison.

Melanson turned himself into police early Thursday morning, said Const. Kevin Glode.

O'Connell was also arrested without incident on Thursday at a downtown home around 3 p.m. after police received a tip from the public, said Glode.

Melanson has been returned to the custody of Correctional Service Canada, he said.

O'Connell remains in police custody and is expected to appear in court on Friday to face a charge of being unlawfully at large.

No details released

Correctional Service Canada spokesperson Paulette Gaudet declined to discuss any details about either man's release or the allegations against them, citing the Privacy Act provisions.

"However, I can tell you that unlawfully at large (UAL) offenders are those who have been released in the community on day parole, full parole, statutory release, or a long-term supervision order and who have violated the conditions of their release," Gaudet said in an email to CBC News.

When an offender is declared unlawfully at large, the appropriate police forces are notified by Correctional Service Canada and provided with information to assist in recapturing them, she said.

Melanson is serving a sentence of about two years for assault with use of force and drug trafficking.

O'Connell is serving a nearly four-year sentence for sexual assault, robbery, assault with intent to commit robbery and drug possession.

RCMP had issued a statement and photographs of Melanson and O'Connell on Wednesday, requesting the public's help.

Police received a few tips, said Glode.

​"The RCMP would like to thank the public for their assistance in locating these two men," he said.