Thanks for clarifying, Daniel.
As the From header is parsed prior to cloning (and therefore included in the clone), it is pointless to parse it again and have to manually clean it up later - so this part of the code needs changing anyway.
I have added a commit to master relating to the above - Andrey, can you confirm if this also fixes the leak you observed?
—
Reply to this email directly or view it on GitHub.