Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
a2e8df03
Commit
a2e8df03
authored
May 16, 2017
by
Nikos Mavrogiannopoulos
Committed by
Niels Möller
May 16, 2017
Browse files
hogweed-benchmark: eliminated memory leak
Signed-off-by:
Nikos Mavrogiannopoulos
<
nmav@redhat.com
>
parent
0e8df275
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/hogweed-benchmark.c
View file @
a2e8df03
...
...
@@ -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
;
{
free
(
ctx
);
return
NULL
;
}
if
(
!
EC_KEY_generate_key
(
ctx
->
key
))
die
(
"Openssl EC_KEY_generate_key failed.
\n
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment