Iran and France have agreed to swap a French academic held on security charges and an Iranian detained by Paris over alleged violations of U.S. sanctions against Tehran, Iranian state media reported on Friday.

France has released Jalal Ruhollahnejad, an Iranian engineer wanted by U.S. authorities over sanctions charges, state broadcaster IRIB said on its website.

"Roland Gabriel Marchal, who was sentenced to five years' imprisonment for acting against national security ... had his sentence reduced and was released from prison today and handed over to the French Embassy in Tehran," IRIB also reported.