Commit a2e8df03 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos Committed by Niels Möller
Browse files

hogweed-benchmark: eliminated memory leak

Signed-off-by: default avatarNikos Mavrogiannopoulos <>
parent 0e8df275
......@@ -612,7 +612,10 @@ bench_openssl_ecdsa_init (unsigned size)
/* This curve isn't supported in this build of openssl */
if (ctx->key == NULL)
return NULL;
return NULL;
if (!EC_KEY_generate_key( ctx->key))
die ("Openssl EC_KEY_generate_key failed.\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment