Skip to content

Commit

Permalink
key_A and key_B had 3 references, only 2 were freed.
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Steuer <[email protected]>

Reviewed-by: Andy Polyakov <[email protected]>
Reviewed-by: Rich Salz <[email protected]>
(Merged from openssl#4837)
  • Loading branch information
p-steuer authored and Rich Salz committed Dec 4, 2017
1 parent 546fda2 commit a00cceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,8 @@ int speed_main(int argc, char **argv)
loopargs[i].ecdh_ctx[testnum] = ctx;
loopargs[i].outlen[testnum] = outlen;

EVP_PKEY_free(key_A);
EVP_PKEY_free(key_B);
EVP_PKEY_CTX_free(kctx);
kctx = NULL;
EVP_PKEY_CTX_free(test_ctx);
Expand Down

0 comments on commit a00cceb

Please sign in to comment.