A French woman convicted of killing her husband was released from prison after she was granted a presidential pardon.