Fix minor memory leak

Free encrypted and plaintext userpass buffers on error.

Spotted by KindOne on IRC.