summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-12-26 16:33:52 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-12-26 16:33:52 +0000
commit254b206eae4d9f0f6be5f252c5f307008049f681 (patch)
tree7b3d40c47cb7f055e1c2dbccf79edb0dfc1db601 /lib
parent54c956a9b672817a45557f58faa937dd00959253 (diff)
Restore two frees that were unintentionally lost during recent refactoring.
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/s3_clnt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libssl/s3_clnt.c b/lib/libssl/s3_clnt.c
index a2e42c0cadd..874e4d398ab 100644
--- a/lib/libssl/s3_clnt.c
+++ b/lib/libssl/s3_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_clnt.c,v 1.158 2016/12/21 18:13:07 deraadt Exp $ */
+/* $OpenBSD: s3_clnt.c,v 1.159 2016/12/26 16:33:51 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2143,6 +2143,9 @@ ssl3_send_client_kex_ecdhe_ecp(SSL *s, SESS_CERT *sc, CBB *cbb)
explicit_bzero(key, key_size);
free(key);
+ BN_CTX_free(bn_ctx);
+ EC_KEY_free(ecdh);
+
return (ret);
}