fix: allocated EVP_PKEY pointer should free memory by the EVP_PKEY_free API.