diff --git a/pkcs11/tests/ecdh_sp800_test.c b/pkcs11/tests/ecdh_sp800_test.c index 32fe5a5f..a322f810 100644 --- a/pkcs11/tests/ecdh_sp800_test.c +++ b/pkcs11/tests/ecdh_sp800_test.c @@ -312,7 +312,7 @@ static size_t openssl_derive(CK_ULONG kdf, EVP_PKEY *private_key, c_free: if (len == 0) { - free(ecdh_key); + free(*ecdh_key); } EVP_PKEY_CTX_free(ctx); if (mdctx != NULL) {