Skip to content
Snippets Groups Projects
Commit a2e8df03 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos Committed by Niels Möller
Browse files

hogweed-benchmark: eliminated memory leak

parent 0e8df275
No related branches found
No related tags found
No related merge requests found
...@@ -612,7 +612,10 @@ bench_openssl_ecdsa_init (unsigned size) ...@@ -612,7 +612,10 @@ bench_openssl_ecdsa_init (unsigned size)
/* This curve isn't supported in this build of openssl */ /* This curve isn't supported in this build of openssl */
if (ctx->key == NULL) if (ctx->key == NULL)
{
free(ctx);
return NULL; return NULL;
}
if (!EC_KEY_generate_key( ctx->key)) if (!EC_KEY_generate_key( ctx->key))
die ("Openssl EC_KEY_generate_key failed.\n"); die ("Openssl EC_KEY_generate_key failed.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment