summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common-kex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common-kex.c b/common-kex.c
index 7da3fb7..d4933dd 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -694,6 +694,9 @@ void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them,
/* K, the shared secret */
buf_putmpint(ses.kexhashbuf, ses.dh_K);
+ ecc_free(Q_them);
+ m_free(Q_them);
+
/* calculate the hash H to sign */
finish_kexhashbuf();
}