Fix a double-free

Fix a double-free that can occur because memory ownership of rootKeyPair and hostKeyPair and transferred to the rootEVP and hostEVP structures by EVP_PKEY_assign().