EVP: fix memleak in evp_pkey_downgrade()